From 31d7b479051c4d9596fd027dfeb5915c182c1a25 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Sep 2009 17:50:50 +0200 Subject: [PATCH] screen_play: fixed list_window.range_selection usage It's a bool. --- src/screen_play.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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--; -- 2.30.2