From e63f0546a166c442464c7d8500a74b38c036432a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 21 Jun 2010 01:27:46 +0000 Subject: Having a list of winlinks->alerts for each session is stupid, just store the alert flags directly in the winlink itself. --- cmd-choose-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd-choose-window.c') diff --git a/cmd-choose-window.c b/cmd-choose-window.c index f8318105..e341dd41 100644 --- a/cmd-choose-window.c +++ b/cmd-choose-window.c @@ -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 = '*'; -- cgit v1.2.3