Merge pull request #1681 from akaWolf/fix_theme_load_non_exist

Fix theme load

When we execute `/theme load somethingthatdoesntexist` it still loaded some colors wrongly.
This commit is contained in:
Michael Vetter
2022-04-03 23:36:39 +02:00
committed by GitHub

View File

@@ -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)) {