projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8201e54
)
Fixed the odd number of lines bug.
author
Francois Fleuret
<francois@fleuret.org>
Mon, 16 Mar 2009 13:38:00 +0000
(14:38 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Mon, 16 Mar 2009 13:38:00 +0000
(14:38 +0100)
selector.cc
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
de06b45
..
af8ef84
100644
(file)
--- a/
selector.cc
+++ b/
selector.cc
@@
-214,7
+214,7
@@
void update_screen(int *current_line, int *temporary_line, int motion,
}
}
- if(last_line < nb_lines - 1) {
+ if(
nb_match < console_height - 1 &&
last_line < nb_lines - 1) {
last_line++;
while(last_line < nb_lines - 1 && !match(lines[last_line], nb_patterns, patterns)) {
last_line++;