]> git.mdlowis.com Git - projs/tide.git/commitdiff
+ and - are now allowed characters in the 'word' set
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 13 Sep 2018 12:56:05 +0000 (08:56 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 13 Sep 2018 12:56:05 +0000 (08:56 -0400)
lib/utf8.c

index 813bf8c830d74721e8632eb4e7f275a52e6ee42c..9e69adf3c2f64e115ec9ded962666b373380ec58 100644 (file)
@@ -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) {