diff options
author | bptato <nincsnevem662@gmail.com> | 2022-10-19 11:52:25 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-10-19 11:52:25 +0200 |
commit | 0c8ac29f4f99a67c3ceec0e25c04de4afc7e7cee (patch) | |
tree | 86a25e3543d54d3e63068afc09e213cd11365303 /src/io/buffer.nim | |
parent | ec82803b87aee94be1e44204bf62426df39f3087 (diff) | |
download | chawan-0c8ac29f4f99a67c3ceec0e25c04de4afc7e7cee.tar.gz |
Fix incorrect mark rendering
Diffstat (limited to 'src/io/buffer.nim')
-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 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 |