about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-11-23 13:39:01 +0100
committerbptato <nincsnevem662@gmail.com>2021-11-23 13:39:01 +0100
commit820d64f453829691013bc83be73ca36a1a5673bd (patch)
tree424872dfa9633406a8eb677bf991f9d6cc7390ea
parentc183dd305c92304dec888cefdf1d1379415a8a86 (diff)
downloadchawan-820d64f453829691013bc83be73ca36a1a5673bd.tar.gz
Fix a refreshDisplay bug
-rw-r--r--src/io/buffer.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/buffer.nim b/src/io/buffer.nim
index 8e1e564d..63b7c128 100644
--- a/src/io/buffer.nim
+++ b/src/io/buffer.nim
@@ -211,7 +211,7 @@ proc refreshDisplay*(buffer: Buffer) =
     var w = 0
     var i = 0
     var j = 0
-    while w < buffer.fromx and i < line.len:
+    while w < buffer.fromx and i < line.str.len:
       fastRuneAt(line.str, i, r)
       w += r.width()
       inc j