summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d53665)
raw | patch | inline | side by side (parent: 3d53665)
author | Kalle Wallin <kaw@linux.se> | |
Tue, 13 Apr 2004 18:36:44 +0000 (18:36 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Tue, 13 Apr 2004 18:36:44 +0000 (18:36 +0000) |
list_window.c | patch | blob | history |
diff --git a/list_window.c b/list_window.c
index 334f7f6eb5dbfd6bba30bf01d800518d19d6a794..c086fca5782ef4807a808888f75b0ce788f39916 100644 (file)
--- a/list_window.c
+++ b/list_window.c
lw->start++;
lw->clear=1;
}
- if( lw->clear )
- {
- wclear(lw->w);
- lw->clear=0;
- }
for(i=0; i<lw->rows; i++)
{
char *label;
label = (callback) (lw->start+i, &highlight, callback_data);
+ wmove(lw->w, i, 0);
+ if( lw->clear )
+ wclrtoeol(lw->w);
if( label )
{
- wmove(lw->w, i, 0);
if( highlight )
wattron(lw->w, A_BOLD);
if( lw->start+i == lw->selected )
wattron(lw->w, A_REVERSE);
- waddnstr(lw->w, label, lw->cols);
+ waddnstr(lw->w, label, lw->cols-1);
if( highlight )
wattroff(lw->w, A_BOLD);
wattroff(lw->w, A_REVERSE);
}
}
+ lw->clear=0;
}