mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Use COLOUR_DEFAULT not hardcoded 8.
This commit is contained in:
parent
9b00472820
commit
6feb8f6505
4
status.c
4
status.c
@ -390,10 +390,10 @@ status_redraw(struct client *c)
|
|||||||
/* Set up default colour. */
|
/* Set up default colour. */
|
||||||
style_apply(&gc, s->options, "status-style", ft);
|
style_apply(&gc, s->options, "status-style", ft);
|
||||||
fg = options_get_number(s->options, "status-fg");
|
fg = options_get_number(s->options, "status-fg");
|
||||||
if (fg != 8)
|
if (!COLOUR_DEFAULT(fg))
|
||||||
gc.fg = fg;
|
gc.fg = fg;
|
||||||
bg = options_get_number(s->options, "status-bg");
|
bg = options_get_number(s->options, "status-bg");
|
||||||
if (bg != 8)
|
if (!COLOUR_DEFAULT(bg))
|
||||||
gc.bg = bg;
|
gc.bg = bg;
|
||||||
if (!grid_cells_equal(&gc, &sl->style)) {
|
if (!grid_cells_equal(&gc, &sl->style)) {
|
||||||
force = 1;
|
force = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user