This commit is contained in:
Max Rottenkolber 2021-04-04 20:48:51 +02:00 committed by GitHub
commit 77901881aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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