Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ReadLine/KeyHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ private void WriteString(string str)
WriteChar(character);
}

private void WriteChar() => WriteChar(_keyInfo.KeyChar);
private void WriteChar() {
// solves bug when typing things like ControlLeftArrow...
// maybe we should only write printable characters...
if (_keyInfo.KeyChar != '\0')
WriteChar(_keyInfo.KeyChar);
}

private void WriteChar(char c)
{
Expand Down