aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/colors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colors.c b/src/colors.c
index 9a4c8c8e..f293249d 100644
--- a/src/colors.c
+++ b/src/colors.c
@@ -217,7 +217,7 @@ static int32_t Color_parse_hex (const char *s, int32_t default_color, int *err)
*err = 1;
ret_color = strtol(s, &tail, 16);
- if (tail - s == 6)
+ if (tail - s == 6 || tail - s == 3)
*err = 0;
else
ret_color = default_color;