From cf6332aebc512c2df10c39f86d4fc9e76f9a0f98 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sat, 20 Feb 2021 20:14:24 +0100 Subject: [PATCH] Fix tooltip from ghost toolbar Github issue: https://github.com/franko/lite-xl/issues/48 --- data/plugins/toolbarview.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/data/plugins/toolbarview.lua b/data/plugins/toolbarview.lua index 7dec7690..20b8ae87 100644 --- a/data/plugins/toolbarview.lua +++ b/data/plugins/toolbarview.lua @@ -57,6 +57,7 @@ function ToolbarView:each_item() if index <= #toolbar_commands then local dx = style.padding.x + (icon_w + toolbar_spacing) * (index - 1) local dy = style.padding.y + if dx >= self.size.x then return end return toolbar_commands[index], ox + dx, oy + dy, icon_w, icon_h end end