summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-08-29 00:39:18 +0000
committernicm <nicm@openbsd.org>2015-08-29 00:39:18 +0000
commit7b46c18d1be7c95df32bf9cf85a2d30d928266cd (patch)
treeef339eebbc19790a6133a253a29b1e196f4dd293
parentBetter take on reducing the name timer. Again check for name changes in (diff)
downloadwireguard-openbsd-7b46c18d1be7c95df32bf9cf85a2d30d928266cd.tar.xz
wireguard-openbsd-7b46c18d1be7c95df32bf9cf85a2d30d928266cd.zip
Treat entering or leaving a mode as pane changed.
-rw-r--r--usr.bin/tmux/window.c6
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