summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c6b0bd)
raw | patch | inline | side by side (parent: 1c6b0bd)
author | Kalle Wallin <kaw@linux.se> | |
Mon, 5 Apr 2004 08:59:59 +0000 (08:59 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Mon, 5 Apr 2004 08:59:59 +0000 (08:59 +0000) |
list_window.c | patch | blob | history |
diff --git a/list_window.c b/list_window.c
index b04b817daab212dc7cc5a0e8d9750441273b89fc..334f7f6eb5dbfd6bba30bf01d800518d19d6a794 100644 (file)
--- a/list_window.c
+++ b/list_window.c
if( lw->selected<0 )
lw->selected=0;
+ while( lw->selected<lw->start )
+ lw->selected++;
+
while( lw->selected>0 && length>0 && lw->selected>=length )
lw->selected--;
}