Use global cursor style and colour options for modes instead of default,

GitHub issue 4117.
This commit is contained in:
nicm
2024-10-01 08:01:19 +00:00
parent 17bab32794
commit 1c1f4c1219
4 changed files with 17 additions and 9 deletions

View File

@ -1686,15 +1686,7 @@ window_set_fill_character(struct window *w)
void
window_pane_default_cursor(struct window_pane *wp)
{
struct screen *s = wp->screen;
int c;
c = options_get_number(wp->options, "cursor-colour");
s->default_ccolour = c;
c = options_get_number(wp->options, "cursor-style");
s->default_mode = 0;
screen_set_cursor_style(c, &s->default_cstyle, &s->default_mode);
screen_set_default_cursor(wp->screen, wp->options);
}
int