1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Reset color pairs when new theme is loaded

We only need the colour pairs initialized that the theme actually uses.
It's otherwise possible that we run over the max value of initialzed
pairs.
This commit is contained in:
Michael Vetter 2019-08-23 13:54:09 +02:00
parent df1b19ecec
commit 023e2dc387

View File

@ -176,6 +176,8 @@ theme_exists(const char *const theme_name)
gboolean
theme_load(const char *const theme_name)
{
color_pair_cache_reset();
if (_theme_load_file(theme_name)) {
_load_preferences();
return TRUE;