summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/resize.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-06-21 01:27:46 +0000
committernicm <nicm@openbsd.org>2010-06-21 01:27:46 +0000
commit4336fb18e6482ae2330d043a5901b12541aac891 (patch)
treecd94efff3c44f97e36e56b9246f5a0a3df2a53fd /usr.bin/tmux/resize.c
parentRename activity->alert in a couple of functions for consistency. (diff)
downloadwireguard-openbsd-4336fb18e6482ae2330d043a5901b12541aac891.tar.xz
wireguard-openbsd-4336fb18e6482ae2330d043a5901b12541aac891.zip
Having a list of winlinks->alerts for each session is stupid, just store
the alert flags directly in the winlink itself.
Diffstat (limited to 'usr.bin/tmux/resize.c')
-rw-r--r--usr.bin/tmux/resize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/resize.c b/usr.bin/tmux/resize.c
index 7c085aedbe7..0db5587830d 100644
--- a/usr.bin/tmux/resize.c
+++ b/usr.bin/tmux/resize.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resize.c,v 1.4 2009/09/24 07:02:56 nicm Exp $ */
+/* $OpenBSD: resize.c,v 1.5 2010/06/21 01:27:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -105,7 +105,7 @@ recalculate_sizes(void)
if (flag)
has = s->curw->window == w;
else
- has = session_has(s, w);
+ has = session_has(s, w) != NULL;
if (has) {
if (s->sx < ssx)
ssx = s->sx;