aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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