about summary refs log tree commit diff stats
path: root/input_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'input_win.c')
-rw-r--r--input_win.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input_win.c b/input_win.c
index 88e21355..176b1847 100644
--- a/input_win.c
+++ b/input_win.c
@@ -108,6 +108,8 @@ void inp_get_char(int *ch, char *input, int *size)
                 waddch(inp_win, *ch);
                 input[(*size)++] = *ch;
             }
+
+            reset_search_attempts();
         }
     }
 
@@ -151,6 +153,7 @@ static int _handle_edit(const int ch, char *input, int *size)
     
     case 127:
     case KEY_BACKSPACE:
+        reset_search_attempts();
         if (*size > 0) {
 
             // if at end, delete last char