refactor(#2826): temporarily reuse BUFNR_PER_TAB in view constructor
This commit is contained in:
parent
5fbd6745eb
commit
3615c7dffe
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user