From 66d7f9efac75a1920cdf152b9fcacc18adb059f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 13 May 2016 23:51:50 +0200 Subject: vis: allow :commands with a hyphen in the name This fixes the argument parsing for the :{un,}map-window commands. --- sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam.c b/sam.c index 3db08fd..1f5e816 100644 --- 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)) -- cgit v1.2.3