Update color in completeTouch

master
C. McEnroe 2020-02-07 22:05:34 -05:00
parent b200194206
commit 09579052a9
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ void completeAdd(size_t id, const char *str, enum Color color) {
void completeTouch(size_t id, const char *str, enum Color color) {
struct Node *node = find(id, str);
if (node && node->color != color) node->color = color;
prepend(node ? detach(node) : alloc(id, str, color));
}