summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2024-10-01 08:01:20 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2024-10-01 08:01:20 +0000
commitd89073729ecc94a571cd667578ab715adadde47f (patch)
treec7772bec69ec0e11b8febc75735f2b090dcbf01a /usr.bin/tmux/window.c
parent1e6fb5bb4fc74003694b0d36393602185a6b996d (diff)
Use global cursor style and colour options for modes instead of default,
GitHub issue 4117.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index dd2f1f8b0e6..2c92c4f8625 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.293 2024/10/01 06:15:47 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.294 2024/10/01 08:01:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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