From b373a5c0919c972f69d44785ad74aa37afe113de Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 30 Jul 2022 18:55:09 -0400 Subject: Rename cache{Prefix,Substr} to cache{Complete,Search} --- command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index f5d9dbf..0926c33 100644 --- a/command.c +++ b/command.c @@ -397,7 +397,7 @@ static void commandWindow(uint id, char *params) { return; } struct Cursor curs = {0}; - for (const char *match; (match = cacheSubstr(&curs, None, params));) { + for (const char *match; (match = cacheSearch(&curs, None, params));) { id = idFind(match); if (!id) continue; cacheAccept(&curs); @@ -672,8 +672,8 @@ void command(uint id, char *input) { struct Cursor curs = {0}; const char *cmd = strsep(&input, " "); - const char *unique = cachePrefix(&curs, None, cmd); - if (unique && !cachePrefix(&curs, None, cmd)) { + const char *unique = cacheComplete(&curs, None, cmd); + if (unique && !cacheComplete(&curs, None, cmd)) { cmd = unique; } -- cgit 1.4.1