about summary refs log tree commit diff stats
path: root/src/io/buffer.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-10-19 11:52:25 +0200
committerbptato <nincsnevem662@gmail.com>2022-10-19 11:52:25 +0200
commit0c8ac29f4f99a67c3ceec0e25c04de4afc7e7cee (patch)
tree86a25e3543d54d3e63068afc09e213cd11365303 /src/io/buffer.nim
parentec82803b87aee94be1e44204bf62426df39f3087 (diff)
downloadchawan-0c8ac29f4f99a67c3ceec0e25c04de4afc7e7cee.tar.gz
Fix incorrect mark rendering
Diffstat (limited to 'src/io/buffer.nim')
-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 0443f514..7ac71f61 100644
--- a/src/io/buffer.nim
+++ b/src/io/buffer.nim
@@ -376,7 +376,7 @@ proc refreshDisplay(buffer: Buffer) =
       inc l
       if mark.x >= startw + aw or mark.x + mark.width < startw: continue
       for i in max(mark.x, startw)..<min(mark.x + mark.width, startw + aw):
-        buffer.display[dls + i].format = mark.format
+        buffer.display[dls + i - startw].format = mark.format
 
     inc y