vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit ea8e6e3ffa8108505be12f0cd418467724be6359 parent 9c26b91465e452ed05605341eb37baa0d0ce66fc Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 25 Oct 2014 15:46:41 +0200 Accept spaces between range and command Diffstat:
| M | vis.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/vis.c b/vis.c @@ -1528,6 +1528,7 @@ static bool exec_cmdline_command(char *cmdline) { } range = (Filerange){ .start = 0, .end = text_size(vis->win->text) }; } + while (*cmdstart == ' ') cmdstart++; char *cmdend = strchr(cmdstart, ' '); /* regex should only apply to command name */ if (cmdend)