summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-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) {