Do not cache format for status line because it stores various pointers

that might be stale, instead cache the cmd_find_state and rebuild the
formats every time they are needed. Reported by Marcel Partap in GitHub
isue 5065.
This commit is contained in:
nicm
2026-05-08 06:57:38 +00:00
parent 496805476e
commit af98467d0d
2 changed files with 35 additions and 20 deletions

2
tmux.h
View File

@@ -2094,8 +2094,8 @@ struct client {
struct event message_timer;
char *prompt_string;
struct format_tree *prompt_formats;
struct utf8_data *prompt_buffer;
struct cmd_find_state prompt_state;
char *prompt_last;
size_t prompt_index;
prompt_input_cb prompt_inputcb;