summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-20 17:36:04 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-20 17:36:04 +0000
commitfabed58bf5b8af203969094bfdcceadba4b28559 (patch)
treefa4cc4a31b5b5ffcf105d90e905d73e2213f4252 /usr.bin/tmux/window.c
parent50696c1535bb067501f2e85562b7127fe140d251 (diff)
Fill colour palette correctly from option for new panes, GitHub issue
2831.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 69257a3ddff..a83f1302265 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.274 2021/08/13 06:52:51 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.275 2021/08/20 17:36:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -924,6 +924,8 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
wp->pipe_fd = -1;
colour_palette_init(&wp->palette);
+ colour_palette_from_option(&wp->palette, wp->options);
+
screen_init(&wp->base, sx, sy, hlimit);
wp->screen = &wp->base;