From: Max Kellermann Date: Wed, 17 Sep 2008 10:08:09 +0000 (+0200) Subject: list_window: set repaint at the end of list_window_cmd() X-Git-Tag: v0.12_alpha1~273 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=104b126c69b89cc4b7caf301fbdbd0b1c9a21bda;p=ncmpc.git list_window: set repaint at the end of list_window_cmd() --- diff --git a/src/list_window.c b/src/list_window.c index 297d3f6..88f0a69 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -272,32 +272,27 @@ list_window_cmd(struct list_window *lw, unsigned rows, command_t cmd) switch (cmd) { case CMD_LIST_PREVIOUS: list_window_previous(lw, rows); - lw->repaint=1; break; case CMD_LIST_NEXT: list_window_next(lw, rows); - lw->repaint=1; break; case CMD_LIST_FIRST: list_window_first(lw); - lw->repaint = 1; break; case CMD_LIST_LAST: list_window_last(lw, rows); - lw->repaint = 1; break; case CMD_LIST_NEXT_PAGE: list_window_next_page(lw, rows); - lw->repaint = 1; break; case CMD_LIST_PREVIOUS_PAGE: list_window_previous_page(lw); - lw->repaint = 1; break; default: return 0; } + lw->repaint = 1; return 1; }