diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2025-05-05 20:28:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-05 11:28:02 -0700 |
| commit | 9efdd4fe98e74b7068bd716388b2437a27d0ce6a (patch) | |
| tree | b92112121f17e55aeb4191ca6b41e9e34cd1011f /runtime/lua/vim/_extui/shared.lua | |
| parent | 1e7406fa38eef8cb9812272196a97cf530218c4e (diff) | |
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.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
| -rw-r--r-- | runtime/lua/vim/_extui/shared.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua index 94220b62eb..5c0910849e 100644 --- a/runtime/lua/vim/_extui/shared.lua +++ b/runtime/lua/vim/_extui/shared.lua @@ -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, { |
