diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-08-12 20:09:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-08-12 20:09:35 +0000 |
commit | de159864f1f95be9b16803c88d8101e447041f28 (patch) | |
tree | db5815640d507cbc1bc1b15bdfd859534b9fd5fc | |
parent | 585fd456bc4c4f3ee3c48b5b556f7e06ad9160fb (diff) |
Use COLOUR_DEFAULT not hardcoded 8.
-rw-r--r-- | usr.bin/tmux/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index fe7dc117b8d..6254a40a74f 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.225 2021/06/10 07:56:47 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.226 2021/08/12 20:09:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -390,10 +390,10 @@ status_redraw(struct client *c) /* Set up default colour. */ style_apply(&gc, s->options, "status-style", ft); fg = options_get_number(s->options, "status-fg"); - if (fg != 8) + if (!COLOUR_DEFAULT(fg)) gc.fg = fg; bg = options_get_number(s->options, "status-bg"); - if (bg != 8) + if (!COLOUR_DEFAULT(bg)) gc.bg = bg; if (!grid_cells_equal(&gc, &sl->style)) { force = 1; |