fix: open files in correct window from floating oil (#560)

This commit is contained in:
Peeranut Pongpakatien 2025-01-24 13:08:06 +07:00 committed by GitHub
parent 7a782c9a9c
commit 83ac5185f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -709,7 +709,7 @@ M.select = function(opts, callback)
else
-- Close floating window before opening a file
if vim.w.is_oil_win then
vim.api.nvim_win_close(0, false)
M.close()
end
end