diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-23 13:39:01 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-23 13:39:01 +0100 |
commit | 820d64f453829691013bc83be73ca36a1a5673bd (patch) | |
tree | 424872dfa9633406a8eb677bf991f9d6cc7390ea | |
parent | c183dd305c92304dec888cefdf1d1379415a8a86 (diff) | |
download | chawan-820d64f453829691013bc83be73ca36a1a5673bd.tar.gz |
Fix a refreshDisplay bug
-rw-r--r-- | src/io/buffer.nim | 2 |
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 |