aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-05 20:39:33 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-05 20:40:56 +0200
commit899b978360e62043f738b772add108b1ec8f8804 (patch)
tree47ad5bfe9a4ee211c594f80e18198ae221cef53c
parent45bd913194a1fcda4760e39772155ae4e3fc6a47 (diff)
downloadvis-899b978360e62043f738b772add108b1ec8f8804.tar.gz
vis-899b978360e62043f738b772add108b1ec8f8804.tar.xz
vis: remove left over from :sam command
-rw-r--r--sam.c8
-rw-r--r--vis-core.h1
2 files changed, 4 insertions, 5 deletions
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) {
diff --git a/vis-core.h b/vis-core.h
index 70dc2d7..4a5d3fc 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -152,7 +152,6 @@ struct Vis {
bool expandtab; /* whether typed tabs should be converted to spaces */
bool autoindent; /* whether indentation should be copied from previous line on newline */
Map *cmds; /* ":"-commands, used for unique prefix queries */
- Map *sam_cmds; /* ":"-commands, used for unique prefix queries */
Map *options; /* ":set"-options */
Map *keymap; /* key translation before any bindings are matched */
Buffer input_queue; /* holds pending input keys */