summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/statusbar.c')
-rw-r--r--src/fe-text/statusbar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 2404c1a1..8e99c4fe 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -133,9 +133,14 @@ static void statusbar_get_sizes(STATUSBAR_REC *bar, int max_width)
static void statusbar_redraw_line(STATUSBAR_REC *bar)
{
+ WINDOW_REC *old_active_win;
GSList *tmp;
int xpos, rxpos;
+ old_active_win = active_win;
+ if (bar->window != NULL)
+ active_win = bar->window->active;
+
statusbar_get_sizes(bar, COLS-2);
xpos = 1;
@@ -159,6 +164,8 @@ static void statusbar_redraw_line(STATUSBAR_REC *bar)
rec->func(rec, FALSE);
}
}
+
+ active_win = old_active_win;
}
static void statusbar_redraw_all(void)