about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-07-30 18:55:09 -0400
committerJune McEnroe <june@causal.agency>2022-07-30 18:55:09 -0400
commitb373a5c0919c972f69d44785ad74aa37afe113de (patch)
tree019e418d6c7cbe347db0b3aa522a5f0ac93a5145 /input.c
parentSwitch to cache interfaces (diff)
downloadcatgirl-b373a5c0919c972f69d44785ad74aa37afe113de.tar.gz
catgirl-b373a5c0919c972f69d44785ad74aa37afe113de.zip
Rename cache{Prefix,Substr} to cache{Complete,Search}
Diffstat (limited to '')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 739d889..bcefee5 100644
--- a/input.c
+++ b/input.c
@@ -333,9 +333,9 @@ static int tabComplete(struct Edit *e, uint id) {
 		tab.suffix = true;
 	}
 
-	const char *comp = cachePrefix(&tab.curs, id, tab.pre);
+	const char *comp = cacheComplete(&tab.curs, id, tab.pre);
 	if (!comp) {
-		comp = cachePrefix(&tab.curs, id, tab.pre);
+		comp = cacheComplete(&tab.curs, id, tab.pre);
 		tab.suffix ^= true;
 	}
 	if (!comp) {