From d25aa528e221c51b46b5a461c15493593294db81 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 5 Apr 2004 08:59:59 +0000 Subject: [PATCH] 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(+) diff --git a/list_window.c b/list_window.c index b04b817..334f7f6 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--; } -- 2.30.2