diff options
author | 2010-11-22 21:13:13 +0000 | |
---|---|---|
committer | 2010-11-22 21:13:13 +0000 | |
commit | 3db94e9e901aeeae7166eb40e3c14559f4c6ed5c (patch) | |
tree | 6a2fa54079b7d093ac04c4da56111b02ea69a869 /usr.bin/tmux/resize.c | |
parent | Remove old comment about constab[] being eventually generated by config(8). (diff) | |
download | wireguard-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/resize.c')
-rw-r--r-- | usr.bin/tmux/resize.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/tmux/resize.c b/usr.bin/tmux/resize.c index 0db5587830d..c0d243106cb 100644 --- a/usr.bin/tmux/resize.c +++ b/usr.bin/tmux/resize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resize.c,v 1.5 2010/06/21 01:27:46 nicm Exp $ */ +/* $OpenBSD: resize.c,v 1.6 2010/11/22 21:13:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -113,11 +113,8 @@ recalculate_sizes(void) ssy = s->sy; } } - if (ssx == UINT_MAX || ssy == UINT_MAX) { - w->flags |= WINDOW_HIDDEN; + if (ssx == UINT_MAX || ssy == UINT_MAX) continue; - } - w->flags &= ~WINDOW_HIDDEN; limit = options_get_number(&w->options, "force-width"); if (limit != 0 && ssx > limit) |