=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.370 retrieving revision 1.371 diff -c -r1.370 -r1.371 *** src/usr.bin/tmux/tty.c 2020/05/16 14:53:23 1.370 --- src/usr.bin/tmux/tty.c 2020/05/16 15:01:31 1.371 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.370 2020/05/16 14:53:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.371 2020/05/16 15:01:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 2687,2692 **** --- 2687,2700 ---- } static void + tty_window_default_style(struct grid_cell *gc, struct window_pane *wp) + { + memcpy(gc, &grid_default_cell, sizeof *gc); + gc->fg = wp->fg; + gc->bg = wp->bg; + } + + static void tty_default_colours(struct grid_cell *gc, struct window_pane *wp) { struct options *oo = wp->options; *************** *** 2694,2701 **** if (wp->flags & PANE_STYLECHANGED) { wp->flags &= ~PANE_STYLECHANGED; ! style_apply(&wp->cached_active_gc, oo, "window-active-style"); ! style_apply(&wp->cached_gc, oo, "window-style"); } if (gc->fg == 8) { --- 2702,2713 ---- if (wp->flags & PANE_STYLECHANGED) { wp->flags &= ~PANE_STYLECHANGED; ! ! tty_window_default_style(&wp->cached_active_gc, wp); ! style_add(&wp->cached_active_gc, oo, "window-active-style", ! NULL); ! tty_window_default_style(&wp->cached_gc, wp); ! style_add(&wp->cached_gc, oo, "window-style", NULL); } if (gc->fg == 8) {