File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ local View = Class:extend()
32
32
function View :new (args )
33
33
args .explorer :log_new (" View" )
34
34
35
- self .explorer = args .explorer
36
- self .adaptive_size = false
37
- self .side = (self .explorer .opts .view .side == " right" ) and " right" or " left"
38
- self .live_filter = { prev_focused_node = nil , }
39
- self .bufnr_by_tab = {}
35
+ self .explorer = args .explorer
36
+ self .adaptive_size = false
37
+ self .side = (self .explorer .opts .view .side == " right" ) and " right" or " left"
38
+ self .live_filter = { prev_focused_node = nil , }
39
+ self .bufnr_by_tab = {}
40
40
41
- self .winopts = {
41
+ self .winopts = {
42
42
relativenumber = self .explorer .opts .view .relativenumber ,
43
43
number = self .explorer .opts .view .number ,
44
44
list = false ,
@@ -59,6 +59,10 @@ function View:new(args)
59
59
60
60
self :configure_width (self .explorer .opts .view .width )
61
61
self .initial_width = self :get_width ()
62
+
63
+ -- TODO multi-instance remove this; delete buffers rather than retaining them
64
+ local tabid = vim .api .nvim_get_current_tabpage ()
65
+ self .bufnr_by_tab [tabid ] = globals .BUFNR_PER_TAB [tabid ]
62
66
end
63
67
64
68
function View :destroy ()
You can’t perform that action at this time.
0 commit comments