neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a8b9660ca3452a27b68bf914f618df2d78b64180
parent e49a59259507fcddca6f9028864ff2523707b3b0
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 21 Nov 2025 07:49:55 +0800

vim-patch:9.1.1920: tests: not enough testing for wildtrigger() pum redrawing (#36642)

Problem:  tests: not enough testing for wildtrigger() pum redrawing.
Solution: Also test redrawing when leaving cmdline mode (zeertzjq).

closes: vim/vim#18773

https://github.com/vim/vim/commit/eb33c2eb2815edffab3f4abd4cb8617e37ccca40
Diffstat:
Mtest/old/testdir/test_cmdline.vim | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim @@ -5038,11 +5038,20 @@ func Test_wildtrigger_update_screen() call term_sendkeys(buf, "x") call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_2', {}) - " pum window is closed when no completion candidates are available + " pum is closed when no completion candidates are available call term_sendkeys(buf, "\<F8>") call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_3', {}) - call term_sendkeys(buf, "\<esc>") + call term_sendkeys(buf, "\<BS>\<F8>") + call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_1', {}) + + call term_sendkeys(buf, "x") + call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_2', {}) + + " pum is closed when leaving cmdline mode + call term_sendkeys(buf, "\<Esc>") + call VerifyScreenDump(buf, 'Test_wildtrigger_update_screen_4', {}) + call StopVimInTerminal(buf) endfunc