summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-03-01 12:05:16 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-03-01 12:05:16 +0000
commita381372e4d6bd1c30f08a7239b3e7b394fe9959b (patch)
tree601cb4435f91ed135b2513a7e7e3b3172f9886c1 /usr.bin/tmux/window.c
parent70a8d1d801366bebd6631d69723ce308a7f0f620 (diff)
Redraw status on mode entry and exit.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 66aa2b6533c..6a79281d3e0 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.156 2016/01/19 15:59:12 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.157 2016/03/01 12:05:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1085,6 +1085,8 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode)
if ((s = wp->mode->init(wp)) != NULL)
wp->screen = s;
wp->flags |= (PANE_REDRAW|PANE_CHANGED);
+
+ server_status_window(wp->window);
return (0);
}
@@ -1099,6 +1101,8 @@ window_pane_reset_mode(struct window_pane *wp)
wp->screen = &wp->base;
wp->flags |= (PANE_REDRAW|PANE_CHANGED);
+
+ server_status_window(wp->window);
}
void