Fix problem with tab size and subpixel positioning

Solve github issue https://github.com/franko/lite-xl/issues/109
This commit is contained in:
Francesco Abbate
2021-03-18 13:54:33 +01:00
parent 27f3cb23d4
commit 88bec172a1
5 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -370,7 +370,7 @@ function DocView:draw()
self:draw_background(style.background)
local font = self:get_font()
font:set_tab_width(font:get_width(" ") * config.indent_size)
font:set_tab_size(config.indent_size)
local minline, maxline = self:get_visible_line_range()
local lh = self:get_line_height()