File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -406,9 +406,12 @@ M.win_enter_event = function()
406
406
local tabnr = vim .api .nvim_get_current_tabpage ()
407
407
local wins = utils .get_value (M , " config.prior_windows" , {})[tabnr ]
408
408
local prior_exists = utils .truthy (wins )
409
- local win_count = # vim .api .nvim_tabpage_list_wins (tabnr )
409
+ local non_floating_wins = vim .tbl_filter (function (win )
410
+ return not utils .is_floating (win )
411
+ end , vim .api .nvim_tabpage_list_wins (tabnr ))
412
+ local win_count = # non_floating_wins
410
413
log .trace (" checking if last window" )
411
- log .trace (" prior window is " , prior_exists )
414
+ log .trace (" prior window exists = " , prior_exists )
412
415
log .trace (" win_count: " , win_count )
413
416
if prior_exists and win_count == 1 and vim .o .filetype == " neo-tree" then
414
417
local position = vim .api .nvim_buf_get_var (0 , " neo_tree_position" )
You can’t perform that action at this time.
0 commit comments