projects
/
selector.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetics.
[selector.git]
/
selector.cc
diff --git
a/selector.cc
b/selector.cc
index
27225b9
..
0cd620a
100644
(file)
--- a/
selector.cc
+++ b/
selector.cc
@@
-349,7
+349,6
@@
void update_screen(int *current_line, int *temporary_line, int motion,
int nb_printed_lines = 0;
int nb_printed_lines = 0;
- clear();
use_default_colors();
addstr("\n");
use_default_colors();
addstr("\n");
@@
-445,6
+444,8
@@
void update_screen(int *current_line, int *temporary_line, int motion,
buffer[k++] = '\n';
buffer[k++] = '\0';
buffer[k++] = '\n';
buffer[k++] = '\0';
+ clrtoeol();
+
// Highlight the highlighted line ...
if(l == new_line) {
// Highlight the highlighted line ...
if(l == new_line) {
@@
-479,6
+480,8
@@
void update_screen(int *current_line, int *temporary_line, int motion,
addnstr("[empty choice]\n", console_width);
}
addnstr("[empty choice]\n", console_width);
}
+ clrtobot();
+
// Draw the modeline
move(0, 0);
// Draw the modeline
move(0, 0);
@@
-996,6
+999,11
@@
int main(int argc, char **argv) {
kill_after_cursor(pattern, &cursor_position);
}
kill_after_cursor(pattern, &cursor_position);
}
+ else if(key == '\014') { // ^L
+ // I suspect that we may sometime mess up the display
+ clear();
+ }
+
update_screen(¤t_line, &temporary_line, motion,
nb_lines, labels, cursor_position, pattern);
update_screen(¤t_line, &temporary_line, motion,
nb_lines, labels, cursor_position, pattern);