fix(extui): drop "more" window that is no longer floating #33861

Problem:  Moving the "more" (or any extui)-window to a split with
          `wincmd L` does not invalidate it as a tracked window.

Solution: Drop an extui window that is no longer floating.
This commit is contained in:
luukvbaal
2025-05-05 20:28:02 +02:00
committed by GitHub
parent 1e7406fa38
commit 9efdd4fe98

View File

@@ -52,7 +52,10 @@ function M.tab_check_wins()
end
local setopt = false
if not api.nvim_win_is_valid(M.wins[M.tab][type]) then
if
not api.nvim_win_is_valid(M.wins[M.tab][type])
or not api.nvim_win_get_config(M.wins[M.tab][type]).zindex -- no longer floating
then
local top = { vim.opt.fcs:get().horiz or o.ambw == 'single' and '' or '-', 'WinSeparator' }
local border = (type == 'more' or type == 'prompt') and { '', top, '', '', '', '', '', '' }
local cfg = vim.tbl_deep_extend('force', wincfg, {