Only set cache color if not Default

weechat-hashes
June McEnroe 2022-07-30 19:21:37 -04:00
parent b373a5c091
commit be6052e9a9
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ void cacheInsert(bool touch, uint id, const char *key) {
} }
void cacheInsertColor(bool touch, uint id, const char *key, enum Color color) { void cacheInsertColor(bool touch, uint id, const char *key, enum Color color) {
insert(touch, id, key)->color = color; struct Node *node = insert(touch, id, key);
if (color != Default) node->color = color;
} }
void cacheReplace(bool touch, const char *old, const char *new) { void cacheReplace(bool touch, const char *old, const char *new) {