about summary refs log tree commit diff stats
path: root/src/LYReadCFG.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYReadCFG.c')
-rw-r--r--src/LYReadCFG.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index b23f0a28..5600b2aa 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -446,8 +446,8 @@ PRIVATE void parse_color ARGS1(
     *bg++ = '\0';
 
 #if defined(USE_SLANG)
-    if ((check_color(fg, default_fg) < 0) ||
-	(check_color(bg, default_bg) < 0))
+    if ((check_color(fg, default_fg) == ERR_COLOR) ||
+	(check_color(bg, default_bg) == ERR_COLOR))
 	exit_with_color_syntax(temp);
 
     SLtt_set_color(color, NULL, fg, bg);