diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-01-29 15:18:10 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-01-29 15:18:10 +0100 |
commit | 8ab125828d61fbdaeba53005973c378501fd6404 (patch) | |
tree | 6cd615a1227923ab730e58e8bb52d5399a22ae5c /src | |
parent | 05ce1932c60cc303e808255b43950f63012ca665 (diff) |
cmd: rename function
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -149,9 +149,9 @@ static const char *cmd_name(char *buf, size_t sz, const struct cmd *cmd) } -static size_t get_match(const struct commands *commands, - const struct cmd **cmdp, - const char *str, size_t len) +static size_t get_match_long(const struct commands *commands, + const struct cmd **cmdp, + const char *str, size_t len) { struct le *le; size_t nmatch = 0; @@ -234,8 +234,8 @@ static int editor_input(struct commands *commands, struct mbuf *mb, char key, if (err) return err; - n = get_match(commands, &cmd, - (char *)mb->buf, mb->end); + n = get_match_long(commands, &cmd, + (char *)mb->buf, mb->end); if (n == 1 && cmd) { mb->pos = 0; |