Skip to content

Commit

Permalink
patch 8.1.0876: completion match not displayed when popup menu is not…
Browse files Browse the repository at this point in the history
… 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)
  • Loading branch information
brammool committed Feb 5, 2019
1 parent 71b13e9 commit 2a78b7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/edit.c
Expand Up @@ -5021,9 +5021,13 @@ ins_compl_next(
/* may undisplay the popup menu first */
ins_compl_upd_pum();

// Redraw before showing the popup menu to show the user what was
// inserted.
pum_call_update_screen();
if (pum_enough_matches())
// Will display the popup menu, don't redraw yet to avoid flicker.
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 */
ins_compl_show_pum();
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -783,6 +783,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
876,
/**/
875,
/**/
Expand Down

0 comments on commit 2a78b7c

Please sign in to comment.