refactor(#2826): temporarily reuse BUFNR_PER_TAB in view constructor
This commit is contained in:
@@ -59,6 +59,10 @@ function View:new(args)
|
|||||||
|
|
||||||
self:configure_width(self.explorer.opts.view.width)
|
self:configure_width(self.explorer.opts.view.width)
|
||||||
self.initial_width = self:get_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
|
end
|
||||||
|
|
||||||
function View:destroy()
|
function View:destroy()
|
||||||
|
|||||||
Reference in New Issue
Block a user