vis

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

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

commit a813305f1a9742bb596b103c5fbb9a4226a52116
parent 00d3334bd8892b1b34f26a85925bb51ac080deae
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 27 Sep 2016 22:44:37 +0200

sam: allow non-latin command names

Close #387

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

diff --git a/sam.c b/sam.c @@ -378,7 +378,7 @@ static char *parse_cmdname(const char **s) { Buffer buf; buffer_init(&buf); - while (isalpha((unsigned char)**s) || **s == '-') + while (**s && **s != ' ' && (!ispunct((unsigned char)**s) || **s == '-')) buffer_append(&buf, (*s)++, 1); if (buffer_length(&buf))