about summary refs log tree commit diff stats
path: root/src/utils/strwidth.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/strwidth.nim')
-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 fe9df92d..90784890 100644
--- a/src/utils/strwidth.nim
+++ b/src/utils/strwidth.nim
@@ -52,7 +52,7 @@ func width*(s: string; start, len: int): int =
     fastRuneAt(s, i, r)
     result += r.twidth(result)
 
-func notwidth*(s: string): int =
+func notwidth*(s: openArray[char]): int =
   result = 0
   for r in s.runes:
     result += r.width()