Skip to content

Commit 83ac518

Browse files
authored
fix: open files in correct window from floating oil (#560)
1 parent 7a782c9 commit 83ac518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/oil/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ M.select = function(opts, callback)
709709
else
710710
-- Close floating window before opening a file
711711
if vim.w.is_oil_win then
712-
vim.api.nvim_win_close(0, false)
712+
M.close()
713713
end
714714
end
715715

0 commit comments

Comments
 (0)