From cbb42d00288caee1f79d79225d0318004860a0a8 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Wed, 24 Feb 2021 17:50:34 +0100 Subject: [PATCH] Fix spacing in treeview Previous setting was not okay with monospaced fonts --- data/plugins/treeview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index e75725a6..f2a1e443 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -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 "")