diff options
author | nicm <nicm> | 2020-05-16 16:16:07 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 16:16:07 +0000 |
commit | c914abfa19938fe0e41941879649b7a40e192082 (patch) | |
tree | 54b011ea618aeb84835cf64a937a08c74f846b5d /window-tree.c | |
parent | 72984c48347ddfd1d435f8a9ffcdf334c4b28389 (diff) | |
download | rtmux-c914abfa19938fe0e41941879649b7a40e192082.tar.gz rtmux-c914abfa19938fe0e41941879649b7a40e192082.tar.bz2 rtmux-c914abfa19938fe0e41941879649b7a40e192082.zip |
Expand target from client and use it to expand the prompt.
Diffstat (limited to 'window-tree.c')
-rw-r--r-- | window-tree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/window-tree.c b/window-tree.c index 5731fff6..32b94e15 100644 --- a/window-tree.c +++ b/window-tree.c @@ -1234,7 +1234,7 @@ window_tree_key(struct window_mode_entry *wme, struct client *c, if (prompt == NULL) break; data->references++; - status_prompt_set(c, prompt, "", + status_prompt_set(c, NULL, prompt, "", window_tree_kill_current_callback, window_tree_command_free, data, PROMPT_SINGLE|PROMPT_NOFORMAT); free(prompt); @@ -1245,7 +1245,7 @@ window_tree_key(struct window_mode_entry *wme, struct client *c, break; xasprintf(&prompt, "Kill %u tagged? ", tagged); data->references++; - status_prompt_set(c, prompt, "", + status_prompt_set(c, NULL, prompt, "", window_tree_kill_tagged_callback, window_tree_command_free, data, PROMPT_SINGLE|PROMPT_NOFORMAT); free(prompt); @@ -1257,8 +1257,9 @@ window_tree_key(struct window_mode_entry *wme, struct client *c, else xasprintf(&prompt, "(current) "); data->references++; - status_prompt_set(c, prompt, "", window_tree_command_callback, - window_tree_command_free, data, PROMPT_NOFORMAT); + status_prompt_set(c, NULL, prompt, "", + window_tree_command_callback, window_tree_command_free, + data, PROMPT_NOFORMAT); free(prompt); break; case '\r': |