aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'status.c')
-rw-r--r--status.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/status.c b/status.c
index d700f2c7..b4f23702 100644
--- a/status.c
+++ b/status.c
@@ -668,6 +668,20 @@ status_prompt_clear(struct client *c)
screen_reinit(&c->status);
}
+void
+status_prompt_update(struct client *c, const char *msg)
+{
+ xfree(c->prompt_string);
+ c->prompt_string = xstrdup(msg);
+
+ *c->prompt_buffer = '\0';
+ c->prompt_index = 0;
+
+ c->prompt_hindex = 0;
+
+ c->flags |= CLIENT_STATUS;
+}
+
/* Draw client prompt on status line of present else on last line. */
int
status_prompt_redraw(struct client *c)