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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_file.c b/src/screen_file.c
index 05e8ad299..24cd8afc7 100644
--- a/src/screen_file.c
+++ b/src/screen_file.c
@@ -49,7 +49,7 @@ file_repaint(void)
static void
file_repaint_if_active(void)
{
- if (get_cur_mode_id() == 1) /* XXX don't use the literal number */
+ if (screen_is_visible(&screen_browse))
file_repaint();
}