summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-17 18:15:41 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-17 18:15:41 +0000
commit680521778310ed3c0c4c1254cc7aca9133374ecd (patch)
tree94bc62685aca3011e20b4b47975f278edfc77e1e /status.c
parent0f5168f971051c9b1cb60b1a1622a5c0afdaee29 (diff)
Move dist.mk to tools/.
Diffstat (limited to 'status.c')
-rw-r--r--status.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/status.c b/status.c
index 6d8a7838..c89c0f00 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.80 2009-05-14 19:36:56 nicm Exp $ */
+/* $Id: status.c,v 1.81 2009-05-17 18:15:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -182,7 +182,7 @@ draw:
if (larrow == 1 && offset < start) {
if (session_alert_has(s, wl, WINDOW_ACTIVITY))
larrow = -1;
- if (session_alert_has(s, wl, WINDOW_BELL))
+ else if (session_alert_has(s, wl, WINDOW_BELL))
larrow = -1;
}
@@ -195,7 +195,7 @@ draw:
if (rarrow == 1 && offset > start + width) {
if (session_alert_has(s, wl, WINDOW_ACTIVITY))
rarrow = -1;
- if (session_alert_has(s, wl, WINDOW_BELL))
+ else if (session_alert_has(s, wl, WINDOW_BELL))
rarrow = -1;
}
@@ -467,8 +467,7 @@ status_print(struct session *s, struct winlink *wl, struct grid_cell *gc)
if (session_alert_has(s, wl, WINDOW_ACTIVITY)) {
flag = '#';
gc->attr ^= GRID_ATTR_REVERSE;
- }
- if (session_alert_has(s, wl, WINDOW_BELL)) {
+ } else if (session_alert_has(s, wl, WINDOW_BELL)) {
flag = '!';
gc->attr ^= GRID_ATTR_REVERSE;
}