projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f6c5adb
)
Don't increment nb_printed_lines when no answer
author
Olivier Bornet
<Olivier.Bornet@idiap.ch>
Mon, 16 Mar 2009 08:12:20 +0000
(09:12 +0100)
committer
Francois 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
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
5ce4c4e
..
c387c68
100644
(file)
--- 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