From efa32c506969184a054de7224b7d01f93004e9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 30 Dec 2016 17:04:37 +0100 Subject: sam: explicitly pass invalid range for X and Y commands These are never used because there is always an implicit select command prepended. --- sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sam.c') 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; } -- cgit v1.2.3