clicking the empty space where the x was no longer closes the tab

This commit is contained in:
cukmekerb 2021-06-17 21:15:30 -07:00
parent e1d85af69b
commit e493fa1b0a
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ function Node:tab_hovered_update(px, py)
if tab_index then
local x, y, w, h = self:get_tab_rect(tab_index)
local cx, cw = close_button_location(x, w)
if px >= cx and px < cx + cw and py >= y and py < y + h then
if px >= cx and px < cx + cw and py >= y and py < y + h and config.tab_close_button then
self.hovered_close = tab_index
end
else