diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2025-08-21 14:56:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-21 14:56:59 +0200 |
| commit | 94677318655eb803fccef4409834b6b77e11282a (patch) | |
| tree | 4fc4ef0f20fda14b63078532c32b9b90ad13fa6e /runtime/lua/vim/_extui/shared.lua | |
| parent | 30dae87de4c6d6c8bda9657e22e187634cfa12a8 (diff) | |
feat(extui): support paging in the dialog window (#35310)
Problem: Unable to see e.g. `inputlist()` prompts that exceed the dialog
window height.
Multi-line prompts are not handled properly, and tracking
is insufficient for messages in cmdline_block mode.
Solution: Add vim.on_key handler while the dialog window is open that
forwards paging keys to the window.
Properly render multi-line prompts. Keep track of both the start
and end of the current cmdline prompt. Append messages after the
current prompt in cmdline_block mode.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
| -rw-r--r-- | runtime/lua/vim/_extui/shared.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua index ce222424f2..eac8ff5e38 100644 --- a/runtime/lua/vim/_extui/shared.lua +++ b/runtime/lua/vim/_extui/shared.lua @@ -49,7 +49,7 @@ function M.check_targets() hide = type ~= 'cmd' or M.cmdheight == 0 or nil, border = type ~= 'msg' and 'none' or nil, -- kZIndexMessages < zindex < kZIndexCmdlinePopupMenu (grid_defs.h), pager below others. - zindex = 200 - (type == 'pager' and 1 or 0), + zindex = 200 + (type == 'cmd' and 1 or type == 'pager' and -1 or 0), _cmdline_offset = type == 'cmd' and 0 or nil, }) if tab ~= curtab and api.nvim_win_is_valid(M.wins[type]) then |
