summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-tree.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-05-16 16:16:08 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-05-16 16:16:08 +0000
commit8854050c960c6ab1e744243d698071d542020a01 (patch)
treeff2ebc7f469b8526c2e02ec1305eb696aaffd067 /usr.bin/tmux/window-tree.c
parent822db0a9ae52fe46c73b468d1b8f93759c3ce5cf (diff)
Expand target from client and use it to expand the prompt.
Diffstat (limited to 'usr.bin/tmux/window-tree.c')
-rw-r--r--usr.bin/tmux/window-tree.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tmux/window-tree.c b/usr.bin/tmux/window-tree.c
index fdd72fe907a..af071e3caa0 100644
--- a/usr.bin/tmux/window-tree.c
+++ b/usr.bin/tmux/window-tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-tree.c,v 1.49 2020/05/16 16:02:24 nicm Exp $ */
+/* $OpenBSD: window-tree.c,v 1.50 2020/05/16 16:16:07 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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':