aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/screen_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_search.c b/src/screen_search.c
index 245eb5243..b93aef01a 100644
--- a/src/screen_search.c
+++ b/src/screen_search.c
@@ -148,7 +148,7 @@ search_repaint(void)
static void
search_repaint_if_active(void)
{
- if (get_cur_mode_id() == 103) /* XXX don't use the literal number */
+ if (screen_is_visible(&screen_search))
search_repaint();
}