From: Max Kellermann Date: Sat, 17 Oct 2009 22:54:14 +0000 (+0200) Subject: screen_queue: update list_window length after mouse delete X-Git-Tag: release-0.16~93 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83b8db04a384ca6512dcd43137515f371a2758db;p=ncmpc.git screen_queue: update list_window length after mouse delete Fix an assertion failure. --- diff --git a/src/screen_queue.c b/src/screen_queue.c index 7275734..898011d 100644 --- a/src/screen_queue.c +++ b/src/screen_queue.c @@ -621,6 +621,8 @@ handle_mouse_event(struct mpdclient *c) /* delete */ if (selected == lw->selected) mpdclient_cmd_delete(c, lw->selected); + + list_window_set_length(lw, playlist_length(playlist)); } list_window_set_cursor(lw, selected);