aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-30 17:04:37 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-30 17:52:17 +0100
commitefa32c506969184a054de7224b7d01f93004e9f7 (patch)
tree903ce5f4db7516ee38cbce185a477304a5ba5cd4 /sam.c
parent62649ebd6b184b9e1a63d3693683ca23c34c7282 (diff)
downloadvis-efa32c506969184a054de7224b7d01f93004e9f7.tar.gz
vis-efa32c506969184a054de7224b7d01f93004e9f7.tar.xz
sam: explicitly pass invalid range for X and Y commands
These are never used because there is always an implicit select command prepended.
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sam.c b/sam.c
index ad493de..b4d8a5f 100644
--- a/sam.c
+++ b/sam.c
@@ -1272,7 +1272,7 @@ static bool cmd_files(Vis *vis, Win *win, Command *cmd, const char *argv[], Curs
bool match = !cmd->regex || (win->file->name &&
text_regex_match(cmd->regex, win->file->name, 0));
if (match ^ (argv[0][0] == 'Y'))
- ret &= sam_execute(vis, win, cmd->cmd, NULL, range);
+ ret &= sam_execute(vis, win, cmd->cmd, NULL, NULL);
}
return ret;
}