summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
authornicm <nicm>2010-12-06 22:52:20 (GMT)
committer nicm <nicm>2010-12-06 22:52:20 (GMT)
commitcad444bfa07c110c28b8f84e7673358b0cadb66d (patch) (side-by-side diff)
tree9552a3f8efbe91f4c1ec214c697ff24d02e0623b /cmd-choose-window.c
parent5bba0e035d722de4b86cbcf0ab648ebf2844d52b (diff)
downloadtmux-old-cad444bfa07c110c28b8f84e7673358b0cadb66d.zip
tmux-old-cad444bfa07c110c28b8f84e7673358b0cadb66d.tar.gz
tmux-old-cad444bfa07c110c28b8f84e7673358b0cadb66d.tar.bz2
Add an option to alert (monitor) for silence (lack of activity) in a
window. From Thomas Adam.
Diffstat (limited to 'cmd-choose-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-choose-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index 43f38db..ecdb959 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-choose-window.c,v 1.22 2010/06/22 23:26:18 tcunha Exp $ */
+/* $Id: cmd-choose-window.c,v 1.23 2010/12/06 22:52:20 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <[email protected]>
@@ -87,6 +87,8 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx)
flag = '!';
else if (wm->flags & WINLINK_CONTENT)
flag = '+';
+ else if (wm->flags & WINLINK_SILENCE)
+ flag = '~';
else if (wm == s->curw)
flag = '*';
else if (wm == TAILQ_FIRST(&s->lastw))