Skip to content

Commit 62a9e6b

Browse files
committed
let's keep it simple for now
1 parent 4f0b9cf commit 62a9e6b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

command.c

+1-8
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88

99
#include "util.h"
1010

11-
static const char *
12-
bind_name_to_bind(const char *bind) {
13-
if (strcmp(bind, "STR") == 0)
14-
return " ";
15-
return bind;
16-
}
17-
1811
int
1912
command_is_prefix(struct command *cmd) {
2013
return cmd->nchildren > 0;
@@ -35,7 +28,7 @@ command_num_children(struct command *cmd) {
3528
struct command *
3629
command_lookup(struct command *cmd, int ncmds, const char *binding) {
3730
for (int i = 0; i < ncmds; ++i) {
38-
if (strcmp(binding, bind_name_to_bind(cmd[i].bind)) == 0)
31+
if (strcmp(binding, cmd[i].bind) == 0)
3932
return &cmd[i];
4033
}
4134

0 commit comments

Comments
 (0)