diff options
author | C. McEnroe | 2020-02-08 00:58:17 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-08 00:58:17 -0500 |
commit | b5707af4b842f521104c5fba07e5685612ff91f2 (patch) | |
tree | aa599074d2fa08fc12cdf005e867a1c030b13526 /complete.c | |
parent | f14175ebede46eb9e1fbf239a5c3b349951d34fc (diff) |
Handle KICK
See I knew the color cache in complete would be useful in at least one place!
Diffstat (limited to 'complete.c')
-rw-r--r-- | complete.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/complete.c b/complete.c index c194536..2f5275f 100644 --- a/complete.c +++ b/complete.c @@ -90,6 +90,11 @@ void completeTouch(size_t id, const char *str, enum Color color) { prepend(node ? detach(node) : alloc(id, str, color)); } +enum Color completeColor(size_t id, const char *str) { + struct Node *node = find(id, str); + return (node ? node->color : Default); +} + static struct Node *match; const char *complete(size_t id, const char *prefix) { |