From 10bdbac255067e555d406202df2a84d138eaae04 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 19 Feb 2009 17:08:18 +0100 Subject: [PATCH] Automatic commit --- selector.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selector.cc b/selector.cc index 34ed86b..d92a477 100644 --- a/selector.cc +++ b/selector.cc @@ -31,7 +31,7 @@ using namespace std; const int buffer_size = 1024; const int nb_lines_max = 100000; -void build_display(int key, int nb_lines, char **lines, char *regexp) { +void build_display(int line, int nb_lines, char **lines, char *regexp) { char buffer[buffer_size]; clear(); // Cleaning the window refresh(); // After doing something on the display, we refresh it @@ -115,7 +115,7 @@ int main(int argc, char **argv) { printw("Press a key to contine\n"); int key; - build_display(-1, nb_lines, lines, regexp); + build_display(0, nb_lines, lines, regexp); do { key = getch(); @@ -128,7 +128,7 @@ int main(int argc, char **argv) { regexp[regexp_point] = '\0'; } } - build_display(key, nb_lines, lines, regexp); + build_display(0, nb_lines, lines, regexp); } while(key != '\n' && key != KEY_ENTER); echo(); // We want to have echo -- 2.39.5