diff options
author | 2020-05-16 16:16:07 +0000 | |
---|---|---|
committer | 2020-05-16 16:16:07 +0000 | |
commit | 94adf770415cb803237af9a844544f2da66f1f98 (patch) | |
tree | 44ced233d9768929dc89d5ec0752a7bd6a908ad2 /usr.bin/tmux/window-customize.c | |
parent | Move editor stuff to common code in popup.c. (diff) | |
download | wireguard-openbsd-94adf770415cb803237af9a844544f2da66f1f98.tar.xz wireguard-openbsd-94adf770415cb803237af9a844544f2da66f1f98.zip |
Expand target from client and use it to expand the prompt.
Diffstat (limited to 'usr.bin/tmux/window-customize.c')
-rw-r--r-- | usr.bin/tmux/window-customize.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/tmux/window-customize.c b/usr.bin/tmux/window-customize.c index d5ccb41d462..b78e7a0fa7c 100644 --- a/usr.bin/tmux/window-customize.c +++ b/usr.bin/tmux/window-customize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-customize.c,v 1.1 2020/05/16 16:02:24 nicm Exp $ */ +/* $OpenBSD: window-customize.c,v 1.2 2020/05/16 16:16:07 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1111,7 +1111,7 @@ window_customize_set_option(struct client *c, new_item->idx = idx; data->references++; - status_prompt_set(c, prompt, value, + status_prompt_set(c, NULL, prompt, value, window_customize_set_option_callback, window_customize_free_item_callback, new_item, PROMPT_NOFORMAT); @@ -1243,7 +1243,7 @@ window_customize_set_key(struct client *c, new_item->key = key; data->references++; - status_prompt_set(c, prompt, value, + status_prompt_set(c, NULL, prompt, value, window_customize_set_command_callback, window_customize_free_item_callback, new_item, PROMPT_NOFORMAT); @@ -1259,7 +1259,8 @@ window_customize_set_key(struct client *c, new_item->key = key; data->references++; - status_prompt_set(c, prompt, (bd->note == NULL ? "" : bd->note), + status_prompt_set(c, NULL, prompt, + (bd->note == NULL ? "" : bd->note), window_customize_set_note_callback, window_customize_free_item_callback, new_item, PROMPT_NOFORMAT); @@ -1398,7 +1399,7 @@ window_customize_key(struct window_mode_entry *wme, struct client *c, } else xasprintf(&prompt, "Unset option %s? ", item->name); data->references++; - status_prompt_set(c, prompt, "", + status_prompt_set(c, NULL, prompt, "", window_customize_unset_current_callback, window_customize_free_callback, data, PROMPT_SINGLE|PROMPT_NOFORMAT); @@ -1410,7 +1411,7 @@ window_customize_key(struct window_mode_entry *wme, struct client *c, break; xasprintf(&prompt, "Unset or unbind %u tagged? ", tagged); data->references++; - status_prompt_set(c, prompt, "", + status_prompt_set(c, NULL, prompt, "", window_customize_unset_tagged_callback, window_customize_free_callback, data, PROMPT_SINGLE|PROMPT_NOFORMAT); |