Fix spacing in treeview

Previous setting was not okay with monospaced fonts
This commit is contained in:
Francesco Abbate 2021-02-24 17:50:34 +01:00
parent ff5052be9a
commit cbb42d0028
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ function TreeView:draw()
self:draw_background(style.background2)
local icon_width = style.icon_font:get_width("D")
local spacing = style.font:get_width(" ") * 2
local spacing = style.icon_font:get_width("f") / 2
local doc = core.active_view.doc
local active_filename = doc and system.absolute_path(doc.filename or "")