summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--complete.c1
1 files changed, 1 insertions, 0 deletions
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));
 }
 
w=1'>Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe