diff options
author | June McEnroe <june@causal.agency> | 2022-07-30 18:55:09 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-07-30 18:55:09 -0400 |
commit | b373a5c0919c972f69d44785ad74aa37afe113de (patch) | |
tree | 019e418d6c7cbe347db0b3aa522a5f0ac93a5145 /command.c | |
parent | Switch to cache interfaces (diff) | |
download | catgirl-b373a5c0919c972f69d44785ad74aa37afe113de.tar.gz catgirl-b373a5c0919c972f69d44785ad74aa37afe113de.zip |
Rename cache{Prefix,Substr} to cache{Complete,Search}
Diffstat (limited to '')
-rw-r--r-- | command.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |