aboutsummaryrefslogtreecommitdiff
path: root/data/core/docview.lua
diff options
context:
space:
mode:
Diffstat (limited to 'data/core/docview.lua')
-rw-r--r--data/core/docview.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/core/docview.lua b/data/core/docview.lua
index 7dbfbccf..a73bfc9c 100644
--- a/data/core/docview.lua
+++ b/data/core/docview.lua
@@ -439,6 +439,8 @@ function DocView:draw()
local pos = self.position
x, y = self:get_line_screen_position(minline)
+ -- the clip below ensure we don't write on the gutter region. On the
+ -- right side it is redundant with the Node's clip.
core.push_clip_rect(pos.x + gw, pos.y, self.size.x - gw, self.size.y)
for i = minline, maxline do
self:draw_line_body(i, x, y)