mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4328: command line complete matches cleard when typing character
Problem: Command line complete matches cleard when typing character. (Dominique Pellé) Solution: Only remove a popup menu if there is one.
This commit is contained in:
@@ -1883,6 +1883,7 @@ getcmdline_int(
|
|||||||
&& c != Ctrl_L)
|
&& c != Ctrl_L)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_WILDMENU
|
#ifdef FEAT_WILDMENU
|
||||||
|
if (cmdline_pum_active())
|
||||||
cmdline_pum_remove();
|
cmdline_pum_remove();
|
||||||
#endif
|
#endif
|
||||||
(void)ExpandOne(&xpc, NULL, NULL, 0, WILD_FREE);
|
(void)ExpandOne(&xpc, NULL, NULL, 0, WILD_FREE);
|
||||||
|
10
src/testdir/dumps/Test_wildmenu_pum_30.dump
Normal file
10
src/testdir/dumps/Test_wildmenu_pum_30.dump
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|~+0#4040ff13#ffffff0| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|:+0#0000000&|c|n| @71
|
||||||
|
|c|n|e|w|e|r| @6|c|n|f|i|l|e| @6|c|n|o|r|e|m|a|p| @40
|
||||||
|
|c|n|e|x|t| @7|c|n|o|r|e|a|b@1|r|e|v| @1|c|n|o|r|e|m|e|n|u| @39
|
||||||
|
|:|c|n> @71
|
10
src/testdir/dumps/Test_wildmenu_pum_31.dump
Normal file
10
src/testdir/dumps/Test_wildmenu_pum_31.dump
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|~+0#4040ff13#ffffff0| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|:+0#0000000&|c|n| @71
|
||||||
|
|c|n|e|w|e|r| @6|c|n|f|i|l|e| @6|c|n|o|r|e|m|a|p| @40
|
||||||
|
|c|n|e|x|t| @7|c|n|o|r|e|a|b@1|r|e|v| @1|c|n|o|r|e|m|e|n|u| @39
|
||||||
|
|:|c|n|s> @70
|
@@ -2132,6 +2132,15 @@ func Test_wildmenu_pum()
|
|||||||
call TermWait(buf)
|
call TermWait(buf)
|
||||||
call VerifyScreenDump(buf, 'Test_wildmenu_pum_29', {})
|
call VerifyScreenDump(buf, 'Test_wildmenu_pum_29', {})
|
||||||
|
|
||||||
|
" Check "list" still works
|
||||||
|
call term_sendkeys(buf, "\<C-U>set wildmode=longest,list\<CR>")
|
||||||
|
call term_sendkeys(buf, ":cn\<Tab>")
|
||||||
|
call TermWait(buf)
|
||||||
|
call VerifyScreenDump(buf, 'Test_wildmenu_pum_30', {})
|
||||||
|
call term_sendkeys(buf, "s")
|
||||||
|
call TermWait(buf)
|
||||||
|
call VerifyScreenDump(buf, 'Test_wildmenu_pum_31', {})
|
||||||
|
|
||||||
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')
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
4328,
|
||||||
/**/
|
/**/
|
||||||
4327,
|
4327,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user