diff options
author | 2021-01-20 07:16:54 +0000 | |
---|---|---|
committer | 2021-01-20 07:16:54 +0000 | |
commit | b1a381546f9dc2215d80971fa40bd4aad7153408 (patch) | |
tree | 6e38fdfd3284967cbc6e00abd14535c9c6d6cfd3 /usr.bin/tmux/window.c | |
parent | Drop unneeded cast in seal_record_protected_cipher (diff) | |
download | wireguard-openbsd-b1a381546f9dc2215d80971fa40bd4aad7153408.tar.xz wireguard-openbsd-b1a381546f9dc2215d80971fa40bd4aad7153408.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 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index d6ba1b30d89..3082d1b7c1d 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.267 2020/12/15 08:31:50 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.268 2021/01/20 07:16:54 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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) |