diff options
author | nicm <nicm> | 2021-01-20 07:16:54 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-01-20 07:16:54 +0000 |
commit | fb774b77d0f5ccb988b508b8a794633d4c9a5962 (patch) | |
tree | 6af7eebc80363f6d5e2c05ce7b1aae8796477842 /window.c | |
parent | 0730dce5abf5e43f8e3820a1d4e8754e61874a3d (diff) | |
download | rtmux-fb774b77d0f5ccb988b508b8a794633d4c9a5962.tar.gz rtmux-fb774b77d0f5ccb988b508b8a794633d4c9a5962.tar.bz2 rtmux-fb774b77d0f5ccb988b508b8a794633d4c9a5962.zip |
Change so that window_flags escapes # automatically which means configs
will not have to change. A new format window_raw_flags contains the old
unescaped version.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |