From e6abe55134df1b9dc3b7dd7f3a65dff272a35bb7 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 12 Apr 2021 09:36:12 +0000 Subject: Add a flag to disable keys to close a message, GitHub issue 2625. --- alerts.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'alerts.c') diff --git a/alerts.c b/alerts.c index 0f2eb179..b5ea0cf4 100644 --- a/alerts.c +++ b/alerts.c @@ -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); } } -- cgit