From 62649ebd6b184b9e1a63d3693683ca23c34c7282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 30 Dec 2016 16:39:46 +0100 Subject: sam: use more expressive name for select command This is not really used, but commands can expect to have argv[0] set to something. Also "s" is ambigious with the substitute command. --- sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sam.c b/sam.c index dc4023c..ad493de 100644 --- a/sam.c +++ b/sam.c @@ -814,7 +814,7 @@ static Command *command_parse(Vis *vis, const char **s, enum SamError *err) { if (!(cmd->cmd = command_parse(vis, s, err))) goto fail; if (strcmp(cmd->argv[0], "X") == 0 || strcmp(cmd->argv[0], "Y") == 0) { - Command *sel = command_new("s"); + Command *sel = command_new("select"); if (!sel) goto fail; sel->cmd = cmd->cmd; @@ -844,7 +844,7 @@ static Command *sam_parse(Vis *vis, const char *cmd, enum SamError *err) { return NULL; } - Command *sel = command_new("s"); + Command *sel = command_new("select"); if (!sel) { command_free(c); return NULL; -- cgit v1.2.3