diff options
author | Kalle Wallin <kaw@linux.se> | 2004-07-02 15:26:48 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-07-02 15:26:48 +0000 |
commit | 8a22ebb6b68d5696ef853f07de96553e4ae506c4 (patch) | |
tree | b8afe39fd9aefaecdb5133e8d5c13525d7f163b4 /src/screen_play.c | |
parent | c8d8b001242eaf69eded9b9ea59cb526a9e5796f (diff) | |
download | mpd-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
Diffstat (limited to '')
-rw-r--r-- | src/screen_play.c | 2 |
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; |