From 8a8ff11887e37349397ec1851e2483b60083c58d Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Tue, 11 Aug 2015 21:22:44 +0200
Subject: degesch: don't use black for nicks on 256-color
Except for self.
---
degesch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
cgit v1.2.3-70-g09d2