Expand prompts when they are used rather than ahead of time, so the

input can be used as part of the format.
This commit is contained in:
nicm
2025-05-12 10:34:13 +00:00
parent 79b02998a6
commit 37a2c98d3d
2 changed files with 25 additions and 24 deletions

2
tmux.h
View File

@ -1990,6 +1990,7 @@ struct client {
struct event message_timer;
char *prompt_string;
struct format_tree *prompt_formats;
struct utf8_data *prompt_buffer;
char *prompt_last;
size_t prompt_index;
@ -2394,6 +2395,7 @@ typedef void (*job_free_cb) (void *);
#define JOB_KEEPWRITE 0x2
#define JOB_PTY 0x4
#define JOB_DEFAULTSHELL 0x8
#define JOB_SHOWSTDERR 0x10
struct job *job_run(const char *, int, char **, struct environ *,
struct session *, const char *, job_update_cb,
job_complete_cb, job_free_cb, void *, int, int, int);