diff --git a/data/core/docview.lua b/data/core/docview.lua index 73191c2..727b8ac 100644 --- a/data/core/docview.lua +++ b/data/core/docview.lua @@ -119,9 +119,8 @@ end function DocView:get_line_text_y_offset() - local lh = self:get_line_height() local th = self:get_font():get_height() - return (lh - th) / 2 + return math.floor(th*config.line_height - th) end