aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_play.c')
-rw-r--r--src/screen_play.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 625e953d4..265ca4d10 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -400,11 +400,7 @@ play_update(screen_t *screen, mpdclient_t *c)
}
if (c->playlist.id != playlist_id) {
- if (lw->selected >= c->playlist.list->len)
- lw->selected = c->playlist.list->len - 1;
- if (lw->start >= c->playlist.list->len)
- list_window_reset(lw);
-
+ list_window_check_selected(lw, playlist_length(&c->playlist));
play_paint(screen, c);
playlist_id = c->playlist.id;
} else {