mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Expand target from client and use it to expand the prompt.
This commit is contained in:
11
status.c
11
status.c
@ -532,14 +532,17 @@ status_message_redraw(struct client *c)
|
||||
|
||||
/* Enable status line prompt. */
|
||||
void
|
||||
status_prompt_set(struct client *c, const char *msg, const char *input,
|
||||
prompt_input_cb inputcb, prompt_free_cb freecb, void *data, int flags)
|
||||
status_prompt_set(struct client *c, struct cmd_find_state *fs,
|
||||
const char *msg, const char *input, prompt_input_cb inputcb,
|
||||
prompt_free_cb freecb, void *data, int flags)
|
||||
{
|
||||
struct format_tree *ft;
|
||||
char *tmp, *cp;
|
||||
|
||||
ft = format_create(c, NULL, FORMAT_NONE, 0);
|
||||
format_defaults(ft, c, NULL, NULL, NULL);
|
||||
if (fs != NULL)
|
||||
ft = format_create_from_state(NULL, c, fs);
|
||||
else
|
||||
ft = format_create_defaults(NULL, c, NULL, NULL, NULL);
|
||||
|
||||
if (input == NULL)
|
||||
input = "";
|
||||
|
Reference in New Issue
Block a user