diff options
Diffstat (limited to '')
-rw-r--r-- | list_window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/list_window.c b/list_window.c index d0fcaa58e..b251310be 100644 --- a/list_window.c +++ b/list_window.c @@ -64,6 +64,9 @@ list_window_reset(list_window_t *lw) void list_window_check_selected(list_window_t *lw, int length) { + while( lw->start && lw->start+lw->rows>length) + lw->start--; + if( lw->selected<0 ) lw->selected=0; @@ -175,6 +178,7 @@ list_window_paint(list_window_t *lw, if( lw->start+i == lw->selected ) wattroff(lw->w, A_REVERSE); } + } lw->clear=0; } |