diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-08-29 00:39:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-08-29 00:39:19 +0000 |
commit | 659c63d594fdd8d78426872de35fc7bbeec72270 (patch) | |
tree | 5fdf632389f820fb6555cd9764a6d461e2670082 /usr.bin | |
parent | 2ff939de61bcb2f3bf8891a60a879815c7f90f3d (diff) |
Treat entering or leaving a mode as pane changed.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 77692b0f753..d9ec3d84922 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.141 2015/08/29 00:29:15 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.142 2015/08/29 00:39:18 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1066,7 +1066,7 @@ 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; + wp->flags |= (PANE_REDRAW|PANE_CHANGED); return (0); } @@ -1080,7 +1080,7 @@ window_pane_reset_mode(struct window_pane *wp) wp->mode = NULL; wp->screen = &wp->base; - wp->flags |= PANE_REDRAW; + wp->flags |= (PANE_REDRAW|PANE_CHANGED); } void |