aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-11-03 16:01:14 +0000
committerThomas Adam <thomas@xteddy.org>2021-11-03 16:01:14 +0000
commit77fc7ac3be1320a02cf82c329d0031a472b8cf8f (patch)
treebd6e8100bdacb2eb1d927b7f7cf67e568f48a19c /options.c
parent1fc0d1b74f23c8cefb339c3c4bd8af4acf6d63f8 (diff)
parent57100376cc70739f53a1f8a4bacf192b8cdcd124 (diff)
downloadrtmux-77fc7ac3be1320a02cf82c329d0031a472b8cf8f.tar.gz
rtmux-77fc7ac3be1320a02cf82c329d0031a472b8cf8f.tar.bz2
rtmux-77fc7ac3be1320a02cf82c329d0031a472b8cf8f.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options.c b/options.c
index 4da1c408..865ab01f 100644
--- a/options.c
+++ b/options.c
@@ -1122,6 +1122,14 @@ options_push_changes(const char *name)
wp->screen->default_ccolour = c;
}
}
+ if (strcmp(name, "cursor-style") == 0) {
+ RB_FOREACH(wp, window_pane_tree, &all_window_panes) {
+ wp->screen->default_mode = 0;
+ screen_set_cursor_style(options_get_number(wp->options,
+ name), &wp->screen->default_cstyle,
+ &wp->screen->default_mode);
+ }
+ }
if (strcmp(name, "key-table") == 0) {
TAILQ_FOREACH(loop, &clients, entry)
server_client_set_key_table(loop, NULL);