aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-17 12:08:09 +0200
committerMax Kellermann <max@duempel.org>2008-09-17 12:08:09 +0200
commit104b126c69b89cc4b7caf301fbdbd0b1c9a21bda (patch)
treee77cdc1282853919db19f1c35e1a3160a150cbff /src/list_window.c
parent7cc4ce52e00040bdb96b2a8dee9f19d0541100c5 (diff)
downloadmpd-104b126c69b89cc4b7caf301fbdbd0b1c9a21bda.tar.gz
mpd-104b126c69b89cc4b7caf301fbdbd0b1c9a21bda.tar.xz
mpd-104b126c69b89cc4b7caf301fbdbd0b1c9a21bda.zip
list_window: set repaint at the end of list_window_cmd()
Diffstat (limited to 'src/list_window.c')
-rw-r--r--src/list_window.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/list_window.c b/src/list_window.c
index 297d3f662..88f0a690c 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;
}