From: Jeffrey Middleton Date: Thu, 5 Mar 2009 22:43:13 +0000 (-0600) Subject: screen_play: Disable auto-center while in visual selection mode X-Git-Tag: release-0.14~80 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5ce2ef1529c29972173a6a964bbd8b4954d18f29;p=ncmpc.git screen_play: Disable auto-center while in visual selection mode Visual selection mode is a good sign the user is looking at whatever's on the screen. Especially if MPD is in random mode, suddenly jumping somewhere else is a bad plan. --- diff --git a/src/screen_play.c b/src/screen_play.c index c69f64c..f668757 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -498,7 +498,7 @@ play_update(mpdclient_t *c) prev_song_id = current_song_id; /* center the cursor */ - if (options.auto_center && current_song_id != -1) + if (options.auto_center && current_song_id != -1 && ! lw->visual_selection) center_playing_item(c); playlist_repaint();