summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-08-11 21:22:44 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-08-11 21:38:28 +0200
commit8a8ff11887e37349397ec1851e2483b60083c58d (patch)
tree03207d71789cad65bfeef058a6153831c8974231 /degesch.c
parent131aee6f0800b6844fde43a698c5bb2f0080988e (diff)
downloadxK-8a8ff11887e37349397ec1851e2483b60083c58d.tar.gz
xK-8a8ff11887e37349397ec1851e2483b60083c58d.tar.xz
xK-8a8ff11887e37349397ec1851e2483b60083c58d.zip
degesch: don't use black for nicks on 256-color
Except for self.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index 3aefadc..442659b 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2522,7 +2522,7 @@ formatter_parse_nick (struct formatter *self, char *s)
// Never use the black colour, could become transparent on black terminals;
// white is similarly excluded from the range
if (color == COLOR_BLACK)
- color = -1;
+ color = (uint16_t) -1;
// Use a color from the 256-color cube if available
color |= self->ctx->nick_palette[siphash_wrapper (nick,