From d1183b48ad4901a166dcb296170fb066c78512ef Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 14 Jan 2023 18:36:59 +0800 Subject: vim-patch:8.2.4341: command line not redrawn when finishing popup menu (#21792) Problem: Command line not redrawn when finishing popup menu and the screen has scrolled up. Solution: Redraw the command line after updating the screen. (closes vim/vim#9722) https://github.com/vim/vim/commit/414acd342f4a66d930da34d419929985b48bd301 Code change is N/A as Nvim doesn't call update_screen() here. Co-authored-by: Bram Moolenaar --- src/nvim/testdir/test_cmdline.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 12a9b799c2..2f4048cc33 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -2481,6 +2481,13 @@ func Test_wildmenu_pum() call term_sendkeys(buf, ":sign \\\") call VerifyScreenDump(buf, 'Test_wildmenu_pum_37', {}) + " After removing the pum the command line is redrawn + call term_sendkeys(buf, ":edit foo\") + call term_sendkeys(buf, ":edit bar\") + call term_sendkeys(buf, ":ls\") + call term_sendkeys(buf, ":com\ ") + call VerifyScreenDump(buf, 'Test_wildmenu_pum_38', {}) + call term_sendkeys(buf, "\\") call StopVimInTerminal(buf) call delete('Xtest') -- cgit