summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9cd22a2)
raw | patch | inline | side by side (parent: 9cd22a2)
author | Kalle Wallin <kaw@linux.se> | |
Thu, 22 Apr 2004 20:38:28 +0000 (20:38 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Thu, 22 Apr 2004 20:38:28 +0000 (20:38 +0000) |
list_window.c | patch | blob | history |
diff --git a/list_window.c b/list_window.c
index d0fcaa58e1cd078470b945c0df0af41a24b4d965..b251310be228bbfa397dcf5c8a9224ebca81dd5b 100644 (file)
--- a/list_window.c
+++ b/list_window.c
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;
if( lw->start+i == lw->selected )
wattroff(lw->w, A_REVERSE);
}
+
}
lw->clear=0;
}