Don't increment nb_printed_lines when no answer
authorOlivier Bornet <Olivier.Bornet@idiap.ch>
Mon, 16 Mar 2009 08:12:20 +0000 (09:12 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 16 Mar 2009 11:40:25 +0000 (12:40 +0100)
We don't have to increment nb_printed_lines when the search returns 0 result

Signed-off-by: Francois Fleuret <francois@fleuret.org>
selector.cc

index 5ce4c4e..c387c68 100644 (file)
@@ -295,7 +295,6 @@ void update_screen(int *current_line, int *temporary_line, int motion,
 
   if(nb_printed_lines == 1) {
     addnstr("[no selection]\n", console_width);
-    nb_printed_lines++;
   }
 
   // Draw the modeline