Fix clipping error in docview

This commit is contained in:
Francesco Abbate 2021-10-10 21:44:16 +02:00
parent 0f8d7f3202
commit c7aa3ebe01
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ function DocView:draw()
local pos = self.position local pos = self.position
x, y = self:get_line_screen_position(minline) x, y = self:get_line_screen_position(minline)
core.push_clip_rect(pos.x + gw, pos.y, self.size.x, self.size.y) core.push_clip_rect(pos.x + gw, pos.y, self.size.x - gw, self.size.y)
for i = minline, maxline do for i = minline, maxline do
self:draw_line_body(i, x, y) self:draw_line_body(i, x, y)
y = y + lh y = y + lh