summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
authortcunha <tcunha>2010-06-22 23:26:18 (GMT)
committer tcunha <tcunha>2010-06-22 23:26:18 (GMT)
commit4ee1278f5dd646bec28bb80f4729cf56ce37b65b (patch) (side-by-side diff)
tree68b29412a11edf356f408133f2970315bc08de0b /cmd-choose-window.c
parent24ea371b3c5646ae63768a8c7ddd328bf0a1e354 (diff)
downloadtmux-old-4ee1278f5dd646bec28bb80f4729cf56ce37b65b.zip
tmux-old-4ee1278f5dd646bec28bb80f4729cf56ce37b65b.tar.gz
tmux-old-4ee1278f5dd646bec28bb80f4729cf56ce37b65b.tar.bz2
Sync OpenBSD patchset 724:
Having a list of winlinks->alerts for each session is stupid, just store the alert flags directly in the winlink itself.
Diffstat (limited to 'cmd-choose-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-choose-window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index 773cf6d..43f38db 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-choose-window.c,v 1.21 2010/04/22 21:51:27 tcunha Exp $ */
+/* $Id: cmd-choose-window.c,v 1.22 2010/06/22 23:26:18 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <[email protected]>
@@ -81,11 +81,11 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx)
idx++;
flag = ' ';
- if (session_alert_has(s, wm, WINDOW_ACTIVITY))
+ if (wm->flags & WINLINK_ACTIVITY)
flag = '#';
- else if (session_alert_has(s, wm, WINDOW_BELL))
+ else if (wm->flags & WINLINK_BELL)
flag = '!';
- else if (session_alert_has(s, wm, WINDOW_CONTENT))
+ else if (wm->flags & WINLINK_CONTENT)
flag = '+';
else if (wm == s->curw)
flag = '*';