We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8af176e commit 8238865Copy full SHA for 8238865
lua/neo-tree/utils.lua
@@ -441,9 +441,13 @@ M.get_appropriate_window = function(state)
441
end
442
443
local attempts = 0
444
- while attempts < 5 and vim.bo.filetype == "neo-tree" do
445
- attempts = attempts + 1
446
- vim.cmd("wincmd w")
+ while attempts < 5 and not suitable_window_found do
+ if vim.bo.filetype == "neo-tree" or M.is_floating() then
+ attempts = attempts + 1
447
+ vim.cmd("wincmd w")
448
+ else
449
+ suitable_window_found = true
450
+ end
451
452
453
local winid = vim.api.nvim_get_current_win()
0 commit comments