Code

screen_file: set highlights after screen update
authorMax Kellermann <max@duempel.org>
Wed, 1 Oct 2008 07:45:05 +0000 (09:45 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 1 Oct 2008 07:45:05 +0000 (09:45 +0200)
Due to a missing sync_highlights() call, highlights were gone when the
user pressed the "update" hot key.

src/screen_file.c

index a0a7c7ccea575fd8bb91f4cdaa0af501e63ebf35..3870cbdc7e9165cc89070deb9084a4fd11818bcf 100644 (file)
@@ -239,6 +239,7 @@ browse_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
                break;
        case CMD_SCREEN_UPDATE:
                browser.filelist = mpdclient_filelist_update(c, browser.filelist);
+               sync_highlights(c, browser.filelist);
                list_window_check_selected(browser.lw,
                                           filelist_length(browser.filelist));
                file_repaint();