summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-29 15:18:10 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-29 15:18:10 +0100
commit8ab125828d61fbdaeba53005973c378501fd6404 (patch)
tree6cd615a1227923ab730e58e8bb52d5399a22ae5c /src
parent05ce1932c60cc303e808255b43950f63012ca665 (diff)
cmd: rename function
Diffstat (limited to 'src')
-rw-r--r--src/cmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd.c b/src/cmd.c
index 78c3522..1aaf761 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -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;