aboutsummaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderdocument.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim
index 46d8a003..fd4be8da 100644
--- a/src/render/renderdocument.nim
+++ b/src/render/renderdocument.nim
@@ -311,7 +311,8 @@ proc renderBlockContext(grid: var FlexibleGrid, ctx: BlockBox, x, y: int, window
x += ctx.width div 2
x = x div window.ppc
y = y div window.ppl
- grid.setText(s, ComputedFormat(node: ctx.node), x, y)
+ if y >= 0 and x + w >= 0:
+ grid.setText(s, ComputedFormat(node: ctx.node), x, y)
if ctx of ListItemBox:
let ctx = ListItemBox(ctx)