From d5510c2e49218275fd90e4aff225eecf226e0b06 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 12 Aug 2021 20:09:34 +0000 Subject: [PATCH] Use COLOUR_DEFAULT not hardcoded 8. --- usr.bin/tmux/status.c | 6 +++--- 1 file 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 @@ -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; -- 2.20.1