mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
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:
@@ -52,7 +52,10 @@ function M.tab_check_wins()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local setopt = false
|
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 top = { vim.opt.fcs:get().horiz or o.ambw == 'single' and '─' or '-', 'WinSeparator' }
|
||||||
local border = (type == 'more' or type == 'prompt') and { '', top, '', '', '', '', '', '' }
|
local border = (type == 'more' or type == 'prompt') and { '', top, '', '', '', '', '', '' }
|
||||||
local cfg = vim.tbl_deep_extend('force', wincfg, {
|
local cfg = vim.tbl_deep_extend('force', wincfg, {
|
||||||
|
Reference in New Issue
Block a user