diff options
author | nicm <nicm> | 2022-06-17 07:28:05 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-06-17 07:28:05 +0000 |
commit | d9f84854ac01c8d4f6d5507e88d1dc7bcdd99558 (patch) | |
tree | 3f95abd5d0709dff64a4246dd960cd3bf6a508d8 /window.c | |
parent | 7cee982f909d29e7331d35bd9c21d337688b9ea1 (diff) |
Check cursor options when a pane is created, not just when they are changed.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -933,6 +933,7 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit) screen_init(&wp->base, sx, sy, hlimit); wp->screen = &wp->base; + window_pane_default_cursor(wp); screen_init(&wp->status_screen, 1, 1, 0); @@ -1608,3 +1609,17 @@ window_set_fill_character(struct window *w) w->fill_character = ud; } } + +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); +} |