projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7766119
)
Cleaned up the line display. Removed the clrtoeol, which seems to be useless (?)
author
Francois Fleuret
<francois@fleuret.org>
Tue, 12 Apr 2011 16:24:37 +0000
(18:24 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 12 Apr 2011 16:24:37 +0000
(18:24 +0200)
selector.c
patch
|
blob
|
history
diff --git
a/selector.c
b/selector.c
index
5f6203d
..
ca9d392
100644
(file)
--- a/
selector.c
+++ b/
selector.c
@@
-608,27
+608,19
@@
void update_screen(int *current_focus_line, int *displayed_focus_line,
k++;
}
k++;
}
- /* We fill the rest of the line with blanks if this is the
- highlighted line */
+ /* Highlight the highlighted line ... */
if(l == new_focus_line) {
while(k < console_width) {
buffer[k++] = ' ';
}
if(l == new_focus_line) {
while(k < console_width) {
buffer[k++] = ' ';
}
- }
-
- buffer[k++] = '\n';
- buffer[k++] = '\0';
-
- clrtoeol();
-
- /* Highlight the highlighted line ... */
-
- if(l == new_focus_line) {
attron(attr_focus_line);
addnstr(buffer, console_width);
attroff(attr_focus_line);
} else {
attron(attr_focus_line);
addnstr(buffer, console_width);
attroff(attr_focus_line);
} else {
+ buffer[k++] = '\n';
+ buffer[k++] = '\0';
+ /* clrtoeol(); */
addnstr(buffer, console_width);
}
addnstr(buffer, console_width);
}