aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/window.c b/window.c
index 22986a04..6bfdb1cd 100644
--- a/window.c
+++ b/window.c
@@ -803,15 +803,18 @@ window_destroy_panes(struct window *w)
}
const char *
-window_printable_flags(struct winlink *wl)
+window_printable_flags(struct winlink *wl, int escape)
{
struct session *s = wl->session;
static char flags[32];
int pos;
pos = 0;
- if (wl->flags & WINLINK_ACTIVITY)
+ if (wl->flags & WINLINK_ACTIVITY) {
flags[pos++] = '#';
+ if (escape)
+ flags[pos++] = '#';
+ }
if (wl->flags & WINLINK_BELL)
flags[pos++] = '!';
if (wl->flags & WINLINK_SILENCE)