summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-07 22:05:34 -0500
committerJune McEnroe <june@causal.agency>2020-02-07 22:05:34 -0500
commit09579052a9affcb847e46d5241c8fd8978711b0a (patch)
tree115fe8e417f1520ff6a10b65e171e2be2fa2d9b2
parentUse complete to abbreviate commands (diff)
downloadcatgirl-09579052a9affcb847e46d5241c8fd8978711b0a.tar.gz
catgirl-09579052a9affcb847e46d5241c8fd8978711b0a.zip
Update color in completeTouch
-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));
 }
 
der'>2019-01-13Shorten $HOME to ~ in prompt expansionJune McEnroe 2019-01-13Document PSlitJune McEnroe 2019-01-13Document PS0June McEnroe 2019-01-13Set PS0 in cashJune McEnroe 2019-01-13Add PS0June McEnroe 2019-01-13Change default ENV from cashrc to env.shJune McEnroe 2019-01-13Use colours in cash promptsJune McEnroe 2019-01-12Set PSlit like NetBSD shJune McEnroe 2019-01-12Install gnupg2 from pkgsrc and symlink gpgJune McEnroe 2019-01-12Reference cash builtin man pages in cash.1 SEE ALSOJune McEnroe 2019-01-12Restore cash builtin man page datesJune McEnroe 2019-01-12Use local libeditJune McEnroe 2019-01-12Replace libedit MakefileJune McEnroe 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe