diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-13 18:57:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-13 18:57:55 +0000 |
commit | 0450b4a5d436c1408b399150a89cbb2e7982f23f (patch) | |
tree | 0d9b50225b2b652fb9defcbb3209d17245a5f246 /cmd-select-prompt.c | |
parent | fdafe630049861c7d6f293bc34064182d8f326f8 (diff) | |
download | rtmux-0450b4a5d436c1408b399150a89cbb2e7982f23f.tar.gz rtmux-0450b4a5d436c1408b399150a89cbb2e7982f23f.tar.bz2 rtmux-0450b4a5d436c1408b399150a89cbb2e7982f23f.zip |
Move status prompt/message init and teardown into status.c.
Diffstat (limited to 'cmd-select-prompt.c')
-rw-r--r-- | cmd-select-prompt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-select-prompt.c b/cmd-select-prompt.c index 753476b0..8de9d158 100644 --- a/cmd-select-prompt.c +++ b/cmd-select-prompt.c @@ -1,4 +1,4 @@ -/* $Id: cmd-select-prompt.c,v 1.6 2009-01-19 18:23:40 nicm Exp $ */ +/* $Id: cmd-select-prompt.c,v 1.7 2009-02-13 18:57:55 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -55,7 +55,7 @@ cmd_select_prompt_exec(struct cmd *self, struct cmd_ctx *ctx) if (c->prompt_string != NULL) return (0); - server_set_client_prompt(c, "index ", cmd_select_prompt_callback, c, 0); + status_prompt_set(c, "index ", cmd_select_prompt_callback, c, 0); return (0); } @@ -74,14 +74,14 @@ cmd_select_prompt_callback(void *data, const char *s) idx = strtonum(s, 0, UINT_MAX, &errstr); if (errstr != NULL) { xsnprintf(msg, sizeof msg, "Index %s: %s", errstr, s); - server_set_client_message(c, msg); + status_message_set(c, msg); return (0); } if (winlink_find_by_index(&c->session->windows, idx) == NULL) { xsnprintf(msg, sizeof msg, "Window not found: %s:%d", c->session->name, idx); - server_set_client_message(c, msg); + status_message_set(c, msg); return (0); } |