From 9c2713c9173397418cbb03ad7c63506a2566babf Mon Sep 17 00:00:00 2001 From: Artjom Vejsel Date: Sat, 2 Apr 2022 19:07:59 +0300 Subject: [PATCH] disable execution of colors-changing code when call for theme load and it doesn't exist --- src/config/theme.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/theme.c b/src/config/theme.c index 9becc833..39f3d00c 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -184,6 +184,9 @@ theme_exists(const char* const theme_name) gboolean theme_load(const char* const theme_name, gboolean load_theme_prefs) { + if (!theme_exists(theme_name)) + return FALSE; + color_pair_cache_reset(); if (_theme_load_file(theme_name)) {