From: Olivier Bornet Date: Mon, 16 Mar 2009 08:12:20 +0000 (+0100) Subject: Don't increment nb_printed_lines when no answer X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad25fa46db2e693f887638a4afa35555cd1e5646;p=selector.git Don't increment nb_printed_lines when no answer We don't have to increment nb_printed_lines when the search returns 0 result Signed-off-by: Francois Fleuret --- diff --git a/selector.cc b/selector.cc index 5ce4c4e..c387c68 100644 --- a/selector.cc +++ b/selector.cc @@ -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