From 8a22ebb6b68d5696ef853f07de96553e4ae506c4 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Fri, 2 Jul 2004 15:26:48 +0000 Subject: Make shure the list scrolls when moving a song git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1767 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen_play.c | 2 ++ 1 file changed, 2 insertions(+) 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->selectedstart ) + lw->start--; break; default: break; -- cgit v1.2.3