summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-01-20 08:01:22 +0000
committerThomas Adam <thomas@xteddy.org>2021-01-20 08:01:22 +0000
commit9ff017e908243f3e24e0e26769c8e5aadfa3cb57 (patch)
tree19606afd862a056fa0ecc3babf978877d6da0703 /window.c
parent82423975df8b8de859c58e84a4248f4749cb8b16 (diff)
parentfb774b77d0f5ccb988b508b8a794633d4c9a5962 (diff)
Merge branch 'obsd-master' into master
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 7e8248d7..0ff09d62 100644
--- a/window.c
+++ b/window.c
@@ -810,15 +810,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)