=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.220 retrieving revision 1.221 diff -u -r1.220 -r1.221 --- src/usr.bin/tmux/status.c 2021/02/22 06:53:04 1.220 +++ src/usr.bin/tmux/status.c 2021/04/12 09:36:12 1.221 @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.220 2021/02/22 06:53:04 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.221 2021/04/12 09:36:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -424,7 +424,7 @@ /* Set a status line message. */ void status_message_set(struct client *c, int delay, int ignore_styles, - const char *fmt, ...) + int ignore_keys, const char *fmt, ...) { struct timeval tv; va_list ap; @@ -433,7 +433,6 @@ status_push_screen(c); va_start(ap, fmt); - c->message_ignore_styles = ignore_styles; xvasprintf(&c->message_string, fmt, ap); va_end(ap); @@ -455,6 +454,10 @@ evtimer_add(&c->message_timer, &tv); } + + if (delay != 0) + c->message_ignore_keys = ignore_keys; + c->message_ignore_styles = ignore_styles; c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); c->flags |= CLIENT_REDRAWSTATUS;