diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-17 23:25:13 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-17 23:25:13 +0200 |
commit | 307e12b79a33b031794c5542d3de4b1eb3611958 (patch) | |
tree | 3df5379ed634341e96d6e5cc14c477da11d09194 /src/utils/strwidth.nim | |
parent | 66b9574b165be62e76c7397cf0eaa8d229d42675 (diff) | |
download | chawan-307e12b79a33b031794c5542d3de4b1eb3611958.tar.gz |
strwidth: return alpha for underscore in vi words
Diffstat (limited to 'src/utils/strwidth.nim')
-rw-r--r-- | src/utils/strwidth.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/strwidth.nim b/src/utils/strwidth.nim index 5bfea156..ba7f60a2 100644 --- a/src/utils/strwidth.nim +++ b/src/utils/strwidth.nim @@ -91,7 +91,7 @@ func breaksWord*(r: Rune): bool = func breaksViWordCat*(r: Rune): BreakCategory = if r.isWhiteSpace(): return bcSpace - elif r.breaksWord(): + elif r.breaksWord() and r != Rune'_': return bcSymbol return bcAlpha |