vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 626b15256f844e97eaf32f587ff4385a13fee88a
parent a817da3535e2a3808f102ab41050dcab37dedb50
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 30 Dec 2016 17:04:37 +0100

sam: explicitly pass invalid range for X and Y commands

These are never used because there is always an implicit select command
prepended.

Diffstat:
Msam.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }