diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-30 16:39:46 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-30 17:52:17 +0100 |
| commit | 62649ebd6b184b9e1a63d3693683ca23c34c7282 (patch) | |
| tree | 861698fc5503d274866cd4c49dd1b25cca1cfbc5 | |
| parent | 0b6b87a57b9de6644c18576813868565f639b5bc (diff) | |
| download | vis-62649ebd6b184b9e1a63d3693683ca23c34c7282.tar.gz vis-62649ebd6b184b9e1a63d3693683ca23c34c7282.tar.xz | |
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.
| -rw-r--r-- | sam.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
