mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.0876: completion match not displayed when popup menu is not shown
Problem: Completion match not displayed when popup menu is not shown. Solution: Call update_screen() when not displaying the popup menu to show the inserted match. (Ken Takata, Hirohito Higashi)
This commit is contained in:
@@ -5021,9 +5021,13 @@ ins_compl_next(
|
|||||||
/* may undisplay the popup menu first */
|
/* may undisplay the popup menu first */
|
||||||
ins_compl_upd_pum();
|
ins_compl_upd_pum();
|
||||||
|
|
||||||
// Redraw before showing the popup menu to show the user what was
|
if (pum_enough_matches())
|
||||||
// inserted.
|
// Will display the popup menu, don't redraw yet to avoid flicker.
|
||||||
pum_call_update_screen();
|
pum_call_update_screen();
|
||||||
|
else
|
||||||
|
// Not showing the popup menu yet, redraw to show the user what was
|
||||||
|
// inserted.
|
||||||
|
update_screen(0);
|
||||||
|
|
||||||
/* display the updated popup menu */
|
/* display the updated popup menu */
|
||||||
ins_compl_show_pum();
|
ins_compl_show_pum();
|
||||||
|
@@ -783,6 +783,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 */
|
||||||
|
/**/
|
||||||
|
876,
|
||||||
/**/
|
/**/
|
||||||
875,
|
875,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user