aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_search.c')
-rw-r--r--src/screen_search.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_search.c b/src/screen_search.c
index 48afb4e51..e5239b0c7 100644
--- a/src/screen_search.c
+++ b/src/screen_search.c
@@ -450,7 +450,8 @@ search_cmd(mpdclient_t *c, command_t cmd)
if (browser.filelist != NULL &&
browser_cmd(&browser, c, cmd)) {
- search_repaint();
+ if (screen_is_visible(&screen_search))
+ search_repaint();
return 1;
}