From: Francois Fleuret Date: Thu, 19 Feb 2009 16:08:18 +0000 (+0100) Subject: Automatic commit X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=10bdbac255067e555d406202df2a84d138eaae04;p=selector.git Automatic commit --- 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