summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authornicm <nicm>2016-12-07 23:03:04 +0000
committernicm <nicm>2016-12-07 23:03:04 +0000
commit5819d2a9d75511c4ba7fd7adbeec6b778647e0d7 (patch)
treea3e9f5a529fdcb9a88007292b02e2fa6a44d6e58 /status.c
parent5ea143f521726a47fd5092dcc3abf9101af32751 (diff)
Do not clear the prompt when a message is shown, just leave it around and
return to it when the message is finished.
Diffstat (limited to 'status.c')
-rw-r--r--status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/status.c b/status.c
index 4cdd4932..bd77b90d 100644
--- a/status.c
+++ b/status.c
@@ -554,7 +554,6 @@ status_message_set(struct client *c, const char *fmt, ...)
limit = options_get_number(global_options, "message-limit");
- status_prompt_clear(c);
status_message_clear(c);
va_start(ap, fmt);
@@ -600,7 +599,8 @@ status_message_clear(struct client *c)
free(c->message_string);
c->message_string = NULL;
- c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
+ if (c->prompt_string == NULL)
+ c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
c->flags |= CLIENT_REDRAW; /* screen was frozen and may have changed */
screen_reinit(&c->status);