aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-07-02 15:26:48 +0000
committerKalle Wallin <kaw@linux.se>2004-07-02 15:26:48 +0000
commit8a22ebb6b68d5696ef853f07de96553e4ae506c4 (patch)
treeb8afe39fd9aefaecdb5133e8d5c13525d7f163b4
parentc8d8b001242eaf69eded9b9ea59cb526a9e5796f (diff)
downloadmpd-8a22ebb6b68d5696ef853f07de96553e4ae506c4.tar.gz
mpd-8a22ebb6b68d5696ef853f07de96553e4ae506c4.tar.xz
mpd-8a22ebb6b68d5696ef853f07de96553e4ae506c4.zip
Make shure the list scrolls when moving a song
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1767 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/screen_play.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 615472dcc..20fbe8fe1 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -52,6 +52,8 @@ playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
break;
case PLAYLIST_EVENT_MOVE:
lw->selected = *((int *) data);
+ if( lw->selected<lw->start )
+ lw->start--;
break;
default:
break;