vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 0cc847f6359f218ebcf9ebc49541b26e390c4fbd
parent 6120fa1d459122efb7a98456aab846c3cdb5b73c
Author: Marc André Tanner <mat@brain-dump.org>
Date: Fri, 13 May 2016 23:51:50 +0200
vis: allow :commands with a hyphen in the name
This fixes the argument parsing for the :{un,}map-window commands.
Diffstat:
| M | sam.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sam.c b/sam.c @@ -328,7 +328,7 @@ static char *parse_cmdname(const char **s) { Buffer buf; buffer_init(&buf); - while (isalpha((unsigned char)**s)) + while (isalpha((unsigned char)**s) || **s == '-') buffer_append(&buf, (*s)++, 1); if (buffer_length(&buf))