refactor(#2826): temporarily reuse BUFNR_PER_TAB in view constructor

This commit is contained in:
Alexander Courtis 2025-06-20 09:33:07 +10:00
parent 5fbd6745eb
commit 3615c7dffe

View File

@ -59,6 +59,10 @@ function View:new(args)
self:configure_width(self.explorer.opts.view.width)
self.initial_width = self:get_width()
-- TODO multi-instance remove this; delete buffers rather than retaining them
local tabid = vim.api.nvim_get_current_tabpage()
self.bufnr_by_tab[tabid] = globals.BUFNR_PER_TAB[tabid]
end
function View:destroy()