From 899b978360e62043f738b772add108b1ec8f8804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 5 Apr 2016 20:39:33 +0200 Subject: vis: remove left over from :sam command --- sam.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sam.c') diff --git a/sam.c b/sam.c index 11a6c02..0921dd3 100644 --- a/sam.c +++ b/sam.c @@ -472,16 +472,16 @@ static void command_free(Command *cmd) { } static const CommandDef *command_lookup(Vis *vis, const char *name) { - if (!vis->sam_cmds) { - if (!(vis->sam_cmds = map_new())) + if (!vis->cmds) { + if (!(vis->cmds = map_new())) return NULL; for (const CommandDef *cmd = cmds; cmd && cmd->name[0]; cmd++) { for (const char *const *name = cmd->name; *name; name++) - map_put(vis->sam_cmds, *name, cmd); + map_put(vis->cmds, *name, cmd); } } - return map_closest(vis->sam_cmds, name); + return map_closest(vis->cmds, name); } static Command *command_parse(Vis *vis, const char **s, int level, enum SamError *err) { -- cgit v1.2.3