diff src/testdir/test_cmdline.vim @ 27630:9caeb7f8b094 v8.2.4341

patch 8.2.4341: command line not redrawn when finishing popup menu Commit: https://github.com/vim/vim/commit/414acd342f4a66d930da34d419929985b48bd301 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 10 21:09:45 2022 +0000 patch 8.2.4341: command line not redrawn when finishing popup menu 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 #9722)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Feb 2022 22:15:02 +0100
parents 95d6e3c9aa1e
children 1bdb36828dcc
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -2160,6 +2160,13 @@ func Test_wildmenu_pum()
   call term_sendkeys(buf, ":sign \<Tab>\<C-A>\<S-Tab>")
   call VerifyScreenDump(buf, 'Test_wildmenu_pum_37', {})
 
+  " After removing the pum the command line is redrawn
+  call term_sendkeys(buf, ":edit foo\<CR>")
+  call term_sendkeys(buf, ":edit bar\<CR>")
+  call term_sendkeys(buf, ":ls\<CR>")
+  call term_sendkeys(buf, ":com\<Tab> ")
+  call VerifyScreenDump(buf, 'Test_wildmenu_pum_38', {})
+
   call term_sendkeys(buf, "\<C-U>\<CR>")
   call StopVimInTerminal(buf)
   call delete('Xtest')