From: Max Kellermann Date: Wed, 30 Sep 2009 15:50:50 +0000 (+0200) Subject: screen_play: fixed list_window.range_selection usage X-Git-Tag: release-0.16~274 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31d7b479051c4d9596fd027dfeb5915c182c1a25;p=ncmpc.git screen_play: fixed list_window.range_selection usage It's a bool. --- diff --git a/src/screen_play.c b/src/screen_play.c index f3a0804..72335fc 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -79,8 +79,7 @@ playlist_changed_callback(struct mpdclient *c, int event, gpointer data) case PLAYLIST_EVENT_DELETE: break; case PLAYLIST_EVENT_MOVE: - if(lw->range_selection < 0) - { + if (!lw->range_selection) { lw->selected = *((int *) data); if (lw->selected < lw->start) lw->start--;