about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/strwidth.nim2
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