diff options
author | nicm <nicm> | 2021-04-12 09:36:12 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-04-12 09:36:12 +0000 |
commit | e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7 (patch) | |
tree | 6c99cf6da3a6d22ecbb9b69dfc7696e5fb31c796 /alerts.c | |
parent | cd208c9d72df79a34024df6b8eb8f984613de8ef (diff) | |
download | rtmux-e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7.tar.gz rtmux-e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7.tar.bz2 rtmux-e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7.zip |
Add a flag to disable keys to close a message, GitHub issue 2625.
Diffstat (limited to 'alerts.c')
-rw-r--r-- | alerts.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -315,10 +315,11 @@ alerts_set_message(struct winlink *wl, const char *type, const char *option) tty_putcode(&c->tty, TTYC_BEL); if (visual == VISUAL_OFF) continue; - if (c->session->curw == wl) - status_message_set(c, -1, 1, "%s in current window", type); - else { - status_message_set(c, -1, 1, "%s in window %d", type, + if (c->session->curw == wl) { + status_message_set(c, -1, 1, 0, "%s in current window", + type); + } else { + status_message_set(c, -1, 1, 0, "%s in window %d", type, wl->idx); } } |