diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-14 18:36:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 18:36:59 +0800 |
commit | d1183b48ad4901a166dcb296170fb066c78512ef (patch) | |
tree | e81c514d87654b5e6e7935c588f652ebf7ab6819 | |
parent | 22e3b155f4b34ab54aacda6c0c96c69780e2b587 (diff) | |
download | rneovim-d1183b48ad4901a166dcb296170fb066c78512ef.tar.gz rneovim-d1183b48ad4901a166dcb296170fb066c78512ef.tar.bz2 rneovim-d1183b48ad4901a166dcb296170fb066c78512ef.zip |
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 <Bram@vim.org>
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 7 | ||||
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 2 |
2 files changed, 8 insertions, 1 deletions
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 \<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') diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index c1f30140e2..78b2f52c1f 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -2486,7 +2486,7 @@ describe('builtin popupmenu', function() ]]) end) - it('wildoptions=pum with scrolled messages ', function() + it('wildoptions=pum with scrolled messages', function() screen:try_resize(40,10) command('set wildmenu') command('set wildoptions=pum') |