fix: error opening command window from oil float (#378)
This commit is contained in:
parent
9e3a02252d
commit
06a19f77f1
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ M.open_float = function(dir)
|
||||||
desc = "Close floating oil window",
|
desc = "Close floating oil window",
|
||||||
group = "Oil",
|
group = "Oil",
|
||||||
callback = vim.schedule_wrap(function()
|
callback = vim.schedule_wrap(function()
|
||||||
if util.is_floating_win() then
|
if util.is_floating_win() or vim.fn.win_gettype() == "command" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if vim.api.nvim_win_is_valid(winid) then
|
if vim.api.nvim_win_is_valid(winid) then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue