mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05: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:
parent
df1b19ecec
commit
023e2dc387
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user