From 09579052a9affcb847e46d5241c8fd8978711b0a Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Fri, 7 Feb 2020 22:05:34 -0500 Subject: Update color in completeTouch --- complete.c | 1 + 1 file changed, 1 insertion(+) diff --git a/complete.c b/complete.c index b8f2dfc..8247149 100644 --- a/complete.c +++ b/complete.c @@ -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)); } -- cgit 1.4.1-2-gfad0