mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
Add a dim= style attribute to dim the colours (as best as tmux is able
to). GitHub issue 4842.
This commit is contained in:
4
window.c
4
window.c
@@ -592,6 +592,8 @@ window_redraw_active_switch(struct window *w, struct window_pane *wp)
|
||||
gc2 = &wp->cached_active_gc;
|
||||
if (!grid_cells_look_equal(gc1, gc2))
|
||||
wp->flags |= PANE_REDRAW;
|
||||
else if (wp->cached_dim != wp->cached_active_dim)
|
||||
wp->flags |= PANE_REDRAW;
|
||||
else {
|
||||
c1 = window_pane_get_palette(wp, gc1->fg);
|
||||
c2 = window_pane_get_palette(wp, gc2->fg);
|
||||
@@ -1963,7 +1965,7 @@ window_pane_get_bg(struct window_pane *wp)
|
||||
|
||||
c = window_pane_get_bg_control_client(wp);
|
||||
if (c == -1) {
|
||||
tty_default_colours(&defaults, wp);
|
||||
tty_default_colours(&defaults, wp, NULL);
|
||||
if (COLOUR_DEFAULT(defaults.bg))
|
||||
c = window_get_bg_client(wp);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user