From d4399272c9ba405be63164bfcf4fa13b5b4d71bd Mon Sep 17 00:00:00 2001 From: Benjamin Titmus Date: Fri, 14 Jan 2022 23:06:54 +0000 Subject: [PATCH] Allow overriding colors in the 256 color space --- x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x.c b/x.c index 21f2f09..830cada 100644 --- a/x.c +++ b/x.c @@ -785,7 +785,7 @@ xloadcolor(int i, const char *name, Color *ncolor) XRenderColor color = { .alpha = 0xffff }; if (!name) { - if (BETWEEN(i, 16, 255)) { /* 256 color */ + if (BETWEEN(i, 16, 255) && !colorname[i]) { /* 256 color */ if (i < 6*6*6+16) { /* same colors as xterm */ color.red = sixd_to_16bit( ((i-16)/36)%6 ); color.green = sixd_to_16bit( ((i-16)/6) %6 );