refactor(#2826): remove unnecessary view members float, hide_root_folder; use explorer opts

This commit is contained in:
Alexander Courtis
2025-06-20 09:03:19 +10:00
parent de2ae0b06f
commit 414e576bc2
4 changed files with 13 additions and 17 deletions

View File

@@ -346,7 +346,7 @@ local function open_in_new_window(filename, mode)
end
end
if (mode == "preview" or mode == "preview_no_picker") and explorer and explorer.view.float.enable then
if (mode == "preview" or mode == "preview_no_picker") and explorer and explorer.opts.view.float.enable then
-- ignore "WinLeave" autocmd on preview
-- because the registered "WinLeave"
-- will kill the floating window immediately