Fix tooltip from ghost toolbar

Github issue: https://github.com/franko/lite-xl/issues/48
This commit is contained in:
Francesco Abbate 2021-02-20 20:14:24 +01:00
parent 054350263d
commit cf6332aebc
1 changed files with 1 additions and 0 deletions

View File

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