fix: error opening command window from oil float (#378)

This commit is contained in:
Steven Arcangeli 2024-05-17 12:02:35 -07:00
parent 9e3a02252d
commit 06a19f77f1

View file

@ -295,7 +295,7 @@ M.open_float = function(dir)
desc = "Close floating oil window",
group = "Oil",
callback = vim.schedule_wrap(function()
if util.is_floating_win() then
if util.is_floating_win() or vim.fn.win_gettype() == "command" then
return
end
if vim.api.nvim_win_is_valid(winid) then