about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--input_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input_win.c b/input_win.c
index 84bde9be..a2ac1f1d 100644
--- a/input_win.c
+++ b/input_win.c
@@ -85,7 +85,7 @@ void inp_poll_char(int *ch, char *input, int *size)
     *ch = wgetch(inp_win);
 
     // if delete pressed, go back and delete it
-    if (*ch == 127) {
+    if (*ch == 127 || *ch == KEY_BACKSPACE) {
         if (*size > 0) {
             getyx(inp_win, inp_y, inp_x);