Code

screen_file: sync highlights in screen_file_open
authorThomas Jansen <mithi@mithi.net>
Tue, 27 Oct 2009 08:15:19 +0000 (09:15 +0100)
committerThomas Jansen <mithi@mithi.net>
Tue, 27 Oct 2009 08:15:19 +0000 (09:15 +0100)
Fix bug #2605, where CMD_SCREEN_FILE would show no highlights until some
user action or event changed that.

src/screen_file.c

index 67dc3e081182da8addac2436b3b77b54103b1e8b..86df8c7c0dae30bb9a97f3e163bb927df6310a1a 100644 (file)
@@ -282,6 +282,9 @@ static void
 screen_file_open(struct mpdclient *c)
 {
        screen_file_reload(c);
+#ifndef NCMPC_MINI
+       screen_browser_sync_highlights(browser.filelist, &c->playlist);
+#endif
 }
 
 static const char *