summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-11-22 21:13:13 +0000
committernicm <nicm@openbsd.org>2010-11-22 21:13:13 +0000
commit3db94e9e901aeeae7166eb40e3c14559f4c6ed5c (patch)
tree6a2fa54079b7d093ac04c4da56111b02ea69a869 /usr.bin/tmux/tty.c
parentRemove old comment about constab[] being eventually generated by config(8). (diff)
downloadwireguard-openbsd-3db94e9e901aeeae7166eb40e3c14559f4c6ed5c.tar.xz
wireguard-openbsd-3db94e9e901aeeae7166eb40e3c14559f4c6ed5c.zip
There is somewhere that WINDOW_HIDDEN is getting set when it shouldn't
be and I can't find it, but the flag itself is a useless optimisation that only applies to automatic-resize windows, so just dispose of it entirely. Fixes problems reported by Nicholas Riley.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 1ba18b1504f..31dbd4796b2 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.92 2010/10/16 08:31:55 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.93 2010/11/22 21:13:13 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -547,7 +547,7 @@ tty_write(void (*cmdfn)(
if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
return;
- if (wp->window->flags & WINDOW_HIDDEN || !window_pane_visible(wp))
+ if (!window_pane_visible(wp))
return;
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {