Add prompt-command-cursor-style, from Joshua Cooper in GitHub issue 4765.

This commit is contained in:
nicm
2025-12-22 08:41:01 +00:00
parent a22ec275b4
commit d005803934
3 changed files with 19 additions and 1 deletions

View File

@@ -804,7 +804,10 @@ status_prompt_redraw(struct client *c)
n = options_get_number(s->options, "prompt-cursor-colour");
sl->active->default_ccolour = n;
n = options_get_number(s->options, "prompt-cursor-style");
if (c->prompt_mode == PROMPT_COMMAND)
n = options_get_number(s->options, "prompt-command-cursor-style");
else
n = options_get_number(s->options, "prompt-cursor-style");
screen_set_cursor_style(n, &sl->active->default_cstyle,
&sl->active->default_mode);