Fixed x-offset of text in `DocView:draw_line_gutter`
This commit is contained in:
parent
6525269386
commit
ef53453246
|
@ -330,7 +330,7 @@ function DocView:draw_line_gutter(idx, x, y)
|
||||||
color = style.line_number2
|
color = style.line_number2
|
||||||
end
|
end
|
||||||
local yoffset = self:get_line_text_y_offset()
|
local yoffset = self:get_line_text_y_offset()
|
||||||
x = style.padding.x
|
x = x + style.padding.x
|
||||||
renderer.draw_text(self:get_font(), idx, x, y + yoffset, color)
|
renderer.draw_text(self:get_font(), idx, x, y + yoffset, color)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue