about summary refs log tree commit diff stats
path: root/input_win.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-03-10 23:48:10 +0000
committerJames Booth <boothj5@gmail.com>2012-03-10 23:48:10 +0000
commitf7584469bb8e546f547706083be6d7ccc19c59dc (patch)
treece73b27d4ccb3da9b42bdaf92e9a0c3873dccff5 /input_win.c
parentb22a7c5fdad64636200d43219a47fca8a24cc16f (diff)
downloadprofani-tty-f7584469bb8e546f547706083be6d7ccc19c59dc.tar.gz
Tab completion of online contacts now rolls
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