about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/client.c b/client.c
index 8e5d2f2..29c8f38 100644
--- a/client.c
+++ b/client.c
@@ -524,8 +524,12 @@ static void inputDirection(bool keyCode, wchar_t ch) {
 
 static void inputInsert(bool keyCode, wchar_t ch) {
 	if (keyCode) {
-		inputNormal(keyCode, ch);
-		return;
+		if (ch == KEY_BACKSPACE) {
+			ch = '\b';
+		} else {
+			inputNormal(keyCode, ch);
+			return;
+		}
 	}
 	switch (ch) {
 		break; case Esc: {