1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2022-02-10 21:09:45 +00:00
parent 949b35d83b
commit 414acd342f
4 changed files with 20 additions and 0 deletions

View File

@@ -331,6 +331,7 @@ void cmdline_pum_remove(void)
pum_undisplay(); pum_undisplay();
VIM_CLEAR(compl_match_array); VIM_CLEAR(compl_match_array);
update_screen(0); update_screen(0);
redrawcmd();
} }
void cmdline_pum_cleanup(cmdline_info_T *cclp) void cmdline_pum_cleanup(cmdline_info_T *cclp)

View File

@@ -0,0 +1,10 @@
| +0&#ffffff0@74
|~+0#4040ff13&| @73
|~| @73
|~| @73
|~| @73
|~| @73
|~| @73
|~| @73
|~| @73
|:+0#0000000&|c|o|m|c|l|e|a|r| > @64

View File

@@ -2160,6 +2160,13 @@ func Test_wildmenu_pum()
call term_sendkeys(buf, ":sign \<Tab>\<C-A>\<S-Tab>") call term_sendkeys(buf, ":sign \<Tab>\<C-A>\<S-Tab>")
call VerifyScreenDump(buf, 'Test_wildmenu_pum_37', {}) 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 term_sendkeys(buf, "\<C-U>\<CR>")
call StopVimInTerminal(buf) call StopVimInTerminal(buf)
call delete('Xtest') call delete('Xtest')

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4341,
/**/ /**/
4340, 4340,
/**/ /**/