Fixed gutter text jittering when horizontal scrolling on docview
This commit is contained in:
@@ -211,6 +211,7 @@ function CommandView:draw_line_gutter(idx, x, y)
|
||||
local pos = self.position
|
||||
local color = common.lerp(style.text, style.accent, self.gutter_text_brightness / 100)
|
||||
core.push_clip_rect(pos.x, pos.y, self:get_gutter_width(), self.size.y)
|
||||
x = x + style.padding.x
|
||||
renderer.draw_text(self:get_font(), self.label, x, y + yoffset, color)
|
||||
core.pop_clip_rect()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user