projects
/
selector.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start counting nb_printed_lines from 0
[selector.git]
/
selector.cc
diff --git
a/selector.cc
b/selector.cc
index
5ce4c4e
..
f4d7930
100644
(file)
--- a/
selector.cc
+++ b/
selector.cc
@@
-208,7
+208,7
@@
void update_screen(int *current_line, int *temporary_line, int motion,
addstr("\n");
addstr("\n");
- int nb_printed_lines =
1
;
+ int nb_printed_lines =
0
;
// Here new_line is either a line number matching the patterns, or -1
// Here new_line is either a line number matching the patterns, or -1
@@
-293,15
+293,14
@@
void update_screen(int *current_line, int *temporary_line, int motion,
*temporary_line = new_line;
*temporary_line = new_line;
- if(nb_printed_lines ==
1
) {
+ if(nb_printed_lines ==
0
) {
addnstr("[no selection]\n", console_width);
addnstr("[no selection]\n", console_width);
- nb_printed_lines++;
}
// Draw the modeline
sprintf(buffer, "%d/%d pattern: %s",
}
// Draw the modeline
sprintf(buffer, "%d/%d pattern: %s",
- nb_printed_lines
- 1
,
+ nb_printed_lines,
nb_lines,
pattern_list);
nb_lines,
pattern_list);