Skip to content

Commit

Permalink
fix: error opening command window from oil float (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed May 17, 2024
1 parent 9e3a022 commit 06a19f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06a19f7

Please sign in to comment.