aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_file.c')
-rw-r--r--src/screen_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_file.c b/src/screen_file.c
index 0c24af25d..aabac7afa 100644
--- a/src/screen_file.c
+++ b/src/screen_file.c
@@ -266,7 +266,8 @@ browse_cmd(mpdclient_t *c, command_t cmd)
}
if (browser_cmd(&browser, c, cmd)) {
- file_repaint();
+ if (screen_is_visible(&screen_browse))
+ file_repaint();
return 1;
}