From: Francois Fleuret Date: Thu, 12 Mar 2009 19:15:42 +0000 (+0100) Subject: Automatic commit X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=e4e0e3f0049a756f6da882a986cb7ad58377a890;p=selector.git Automatic commit --- diff --git a/selector.cc b/selector.cc index 8616f1c..fbc4891 100644 --- a/selector.cc +++ b/selector.cc @@ -471,6 +471,7 @@ int main(int argc, char **argv) { update_screen(¤t_line, &temporary_line, motion, nb_lines, lines, patterns, no_blink); + } while(key != '\n' && key != KEY_ENTER && key != ''); echo(); @@ -518,8 +519,5 @@ int main(int argc, char **argv) { delete[] lines[l]; } - curs_set(1); - endwin(); - exit(0); }