Code

list_window: set repaint at the end of list_window_cmd()
authorMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 10:08:09 +0000 (12:08 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 10:08:09 +0000 (12:08 +0200)
src/list_window.c

index 297d3f6624cb2fe9ba7a5146d21bd79c1efa4c5b..88f0a690c739f74316872331cb536785f568cda2 100644 (file)
@@ -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;
 }