Skip to content

Commit 06a19f7

Browse files
committed
fix: error opening command window from oil float (#378)
1 parent 9e3a022 commit 06a19f7

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
@@ -295,7 +295,7 @@ M.open_float = function(dir)
295295
desc = "Close floating oil window",
296296
group = "Oil",
297297
callback = vim.schedule_wrap(function()
298-
if util.is_floating_win() then
298+
if util.is_floating_win() or vim.fn.win_gettype() == "command" then
299299
return
300300
end
301301
if vim.api.nvim_win_is_valid(winid) then

0 commit comments

Comments
 (0)