summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-19 08:43:05 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-19 08:43:05 +0000
commit1fb1af852db1da7714d5b7c581aed86d0e1fff77 (patch)
tree1b377788b5dfc3f0ece7f031a1fec4c093ab2fb4
parent9fa18be4a13fd80a70db105012df3792b4c9b185 (diff)
Make input off flag (selectp -d) apply to synchronize-panes too.
-rw-r--r--usr.bin/tmux/window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index eb2c090392b..4afaf5d30d9 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.153 2015/12/16 21:50:38 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.154 2015/12/19 08:43:04 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1127,7 +1127,9 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
if (wp2 == wp || wp2->mode != NULL)
continue;
- if (wp2->fd != -1 && window_pane_visible(wp2))
+ if (wp2->fd == -1 || wp2->flags & PANE_INPUTOFF)
+ continue;
+ if (window_pane_visible(wp2))
input_key(wp2, key, NULL);
}
}