From 05839983d45af29a383a8e702753eb9617b4e260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 30 Dec 2022 21:50:18 +0100 Subject: core: fix color when the delimiter is not followed by a background color (closes #1867) --- src/gui/gui-color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c index 68c1e690d..e425d108e 100644 --- a/src/gui/gui-color.c +++ b/src/gui/gui-color.c @@ -424,7 +424,7 @@ gui_color_get_custom (const char *color_name) else str_fg = string_strndup (ptr_color_name, pos_delim - ptr_color_name); - pos_bg = pos_delim + 1; + pos_bg = (pos_delim[1]) ? pos_delim + 1 : NULL; } else { -- cgit v1.2.3