@@ -178,7 +178,7 @@ local move_tbl = {
178
178
function View :setup_tabpage (tabpage , callsite )
179
179
local winnr = vim .api .nvim_get_current_win ()
180
180
181
- if self .explorer .opts .experimental .multi_instance_debug then
181
+ if self .explorer .opts .experimental .multi_instance then
182
182
log .line (" dev" , " View:setup_tabpage(%3s, %-20.20s) w%d %s" ,
183
183
tabpage ,
184
184
callsite ,
@@ -451,13 +451,13 @@ function View:set_current_win(callsite)
451
451
local current_tab = vim .api .nvim_get_current_tabpage ()
452
452
local current_win = vim .api .nvim_get_current_win ()
453
453
454
- if self .explorer .opts .experimental .multi_instance_debug then
454
+ if self .explorer .opts .experimental .multi_instance then
455
455
log .line (" dev" , " View:set_current_win(%-20.20s) t%d w%3s->w%3s %s" ,
456
456
callsite ,
457
457
current_tab ,
458
458
globals .TABPAGES [current_tab ].winnr ,
459
459
current_win ,
460
- (globals .TABPAGES [current_tab ].winnr == current_win ) and " " or " UPDATED "
460
+ (globals .TABPAGES [current_tab ].winnr == current_win ) and " " or " MISMATCH "
461
461
)
462
462
end
463
463
576
576
--- @param callsite string for logging purposes
577
577
--- @return number | nil
578
578
function View :get_winnr (tabpage , callsite )
579
- if self .explorer .opts .experimental .multi_instance_debug then
579
+ if self .explorer .opts .experimental .multi_instance then
580
580
local msg = string.format (" View:get_winnr(%3s, %-20.20s)" , tabpage , callsite )
581
581
582
582
tabpage = tabpage or vim .api .nvim_get_current_tabpage ()
625
625
--- @return number
626
626
function View :get_bufnr (callsite )
627
627
local tab = vim .api .nvim_get_current_tabpage ()
628
- if self .explorer .opts .experimental .multi_instance_debug then
628
+ if self .explorer .opts .experimental .multi_instance then
629
629
log .line (" dev" , " View:get_bufnr(%-20.20s) t%d global b%s member b%s %s" ,
630
630
callsite ,
631
631
tab ,
@@ -652,7 +652,7 @@ function View:prevent_buffer_override()
652
652
if not bufname :match (" NvimTree" ) then
653
653
for i , tabpage in ipairs (globals .TABPAGES ) do
654
654
if tabpage .winnr == view_winnr then
655
- if self .explorer .opts .experimental .multi_instance_debug then
655
+ if self .explorer .opts .experimental .multi_instance then
656
656
log .line (" dev" , " View:prevent_buffer_override() t%d w%d clearing" , i , view_winnr )
657
657
end
658
658
0 commit comments