Skip to content

Commit

Permalink
fix: recreate tab components correctly when a tabpage is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Labeyrie committed Jan 26, 2023
1 parent 05583dc commit 8009b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/heirline/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function M.make_tablist(tab_component)
for i, tabpage in ipairs(tabpages) do
local tabnr = vim.api.nvim_tabpage_get_number(tabpage)
local child = self[i]
if not (child and child.tabnr == tabnr) then
if not (child and child.tabpage == tabpage) then
self[i] = self:new(tab_component, i)
child = self[i]
child.tabnr = tabnr
Expand Down

0 comments on commit 8009b77

Please sign in to comment.