From: Michael D. Lowis Date: Thu, 13 Sep 2018 12:56:05 +0000 (-0400) Subject: + and - are now allowed characters in the 'word' set X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=47529854efe12326a5c7ab6374ba0e21e731d157;p=projs%2Ftide.git + and - are now allowed characters in the 'word' set --- diff --git a/lib/utf8.c b/lib/utf8.c index 813bf8c..9e69adf 100644 --- a/lib/utf8.c +++ b/lib/utf8.c @@ -83,7 +83,7 @@ int runewidth(unsigned col, Rune r) { } bool risword(Rune r) { - return (r < 127 && (isalnum(r) || r == '_')); + return (r < 127 && (isalnum(r) || r == '_' || r == '+' || r == '-')); } bool rissigil(Rune r) {