aboutsummaryrefslogtreecommitdiff
path: root/data/core
diff options
context:
space:
mode:
Diffstat (limited to 'data/core')
-rw-r--r--data/core/docview.lua2
-rw-r--r--data/core/rootview.lua2
2 files changed, 3 insertions, 1 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)
diff --git a/data/core/rootview.lua b/data/core/rootview.lua
index 3c4feda0..f5b1e534 100644
--- a/data/core/rootview.lua
+++ b/data/core/rootview.lua
@@ -595,7 +595,7 @@ function Node:draw()
self:draw_tabs()
end
local pos, size = self.active_view.position, self.active_view.size
- core.push_clip_rect(pos.x, pos.y, pos.x + size.x, pos.y + size.y)
+ core.push_clip_rect(pos.x, pos.y, size.x, size.y)
self.active_view:draw()
core.pop_clip_rect()
else