fix(cmdline): don't treat c_CTRL-D as wildmenu (#36067)

Remove WM_LIST, which was previously added in #7110, but now statusline
and messages no longer interfere with each other thanks to the message
grid, etc., and terminal refreshing no longer calls update_screen()
directly since #9883.

Tests from #7110 and #10107 still pass.
This commit is contained in:
zeertzjq
2025-10-08 06:29:00 +08:00
committed by GitHub
parent 9e1d3f4870
commit 236d831d77
4 changed files with 33 additions and 8 deletions

View File

@@ -424,6 +424,36 @@ describe("'wildmenu'", function()
]])
end)
it("<C-D> doesn't make statuslines disappear with 'nowildmenu' #36053", function()
screen:try_resize(60, 10)
command('set laststatus=2 nowildmenu')
feed(':sign <C-D>')
screen:expect([[
|
{1:~ }|*5
{3: }|
:sign |
define jump list place undefine unplace |
:sign ^ |
]])
feed('<Esc>')
screen:expect([[
^ |
{1:~ }|*7
{3:[No Name] }|
|
]])
command('mode')
screen:expect_unchanged()
feed('ifoobar<Esc>')
screen:expect([[
fooba^r |
{1:~ }|*7
{3:[No Name] [+] }|
|
]])
end)
it('works with c_CTRL_Z standard mapping', function()
screen:add_extra_attr_ids {
[100] = { background = Screen.colors.Yellow1, foreground = Screen.colors.Black },