diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-04-12 12:01:32 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-04-12 12:01:32 +0100 |
commit | bedf2bd4372c60a525c22e6309f329cfd0bd07bc (patch) | |
tree | a0b3c4c57781899c1c3d74c12a11a10f69fb7682 /alerts.c | |
parent | 83cd593b9cce8bbdfd8014e13393ec1f1ec90f2e (diff) | |
parent | e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7 (diff) | |
download | rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.tar.gz rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.tar.bz2 rtmux-bedf2bd4372c60a525c22e6309f329cfd0bd07bc.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'alerts.c')
-rw-r--r-- | alerts.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -314,10 +314,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); } } |