From 751fb765e4f26ce1500b4e8ee9f4cd5b6039b495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Aptel?= Date: Thu, 16 Feb 2012 00:10:32 +0100 Subject: fix default color overwriten bug. --- config.def.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 169bcdd..047b5d1 100644 --- a/config.def.h +++ b/config.def.h @@ -30,7 +30,9 @@ static const char *colorname[] = { "cyan", "white", - /* more colors can be added to use with DefaultXX */ + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ "#cccccc", "#333333", }; @@ -39,8 +41,8 @@ static const char *colorname[] = { foreground, background, cursor, unfocused cursor */ #define DefaultFG 7 #define DefaultBG 0 -#define DefaultCS 16 -#define DefaultUCS 17 +#define DefaultCS 256 +#define DefaultUCS 257 /* Special keys (change & recompile st.info accordingly) Keep in mind that kpress() in st.c hardcodes some keys. -- cgit v1.2.1