From 06a19f77f1a1da37b675635e6f9c5b5d50bcaacd Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Fri, 17 May 2024 12:02:35 -0700 Subject: [PATCH] fix: error opening command window from oil float (#378) --- lua/oil/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/oil/init.lua b/lua/oil/init.lua index 737f21cb..2075c24e 100644 --- a/lua/oil/init.lua +++ b/lua/oil/init.lua @@ -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