@@ -56,8 +56,8 @@ function CommandView:get_name()
|
||||
end
|
||||
|
||||
|
||||
function CommandView:get_line_screen_position()
|
||||
local x = CommandView.super.get_line_screen_position(self, 1)
|
||||
function CommandView:get_line_screen_position(line, col)
|
||||
local x = CommandView.super.get_line_screen_position(self, 1, col)
|
||||
local _, y = self:get_content_offset()
|
||||
local lh = self:get_line_height()
|
||||
return x, y + (self.size.y - lh) / 2
|
||||
@@ -243,6 +243,7 @@ function CommandView:draw_line_gutter(idx, x, y)
|
||||
x = x + style.padding.x
|
||||
renderer.draw_text(self:get_font(), self.label, x, y + yoffset, color)
|
||||
core.pop_clip_rect()
|
||||
return self:get_line_height()
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user