Code

Make shure the list scrolls when moving a song
authorKalle Wallin <kaw@linux.se>
Fri, 2 Jul 2004 15:26:48 +0000 (15:26 +0000)
committerKalle Wallin <kaw@linux.se>
Fri, 2 Jul 2004 15:26:48 +0000 (15:26 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1767 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/screen_play.c

index 615472dccf644b3511a1164b1fb5984783da7ed2..20fbe8fe12f9797c9f99e2be89e28b743c445d07 100644 (file)
@@ -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;