From d25aa528e221c51b46b5a461c15493593294db81 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 5 Apr 2004 08:59:59 +0000 Subject: Fixed the list_window_check_selected() function. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@607 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- list_window.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'list_window.c') diff --git a/list_window.c b/list_window.c index b04b817da..334f7f6eb 100644 --- a/list_window.c +++ b/list_window.c @@ -48,6 +48,9 @@ list_window_check_selected(list_window_t *lw, int length) if( lw->selected<0 ) lw->selected=0; + while( lw->selectedstart ) + lw->selected++; + while( lw->selected>0 && length>0 && lw->selected>=length ) lw->selected--; } -- cgit v1.2.3