From ad25fa46db2e693f887638a4afa35555cd1e5646 Mon Sep 17 00:00:00 2001 From: Olivier Bornet Date: Mon, 16 Mar 2009 09:12:20 +0100 Subject: [PATCH] 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 --- selector.cc | 1 - 1 file changed, 1 deletion(-) 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 -- 2.39.5