# HG changeset patch # User Bram Moolenaar # Date 1549394105 -3600 # Node ID 56be1282994f4d5832e95f13113b740ed5eee12a # Parent 4dd27b46f2f66f9b9669bcf4881db6da897170be patch 8.1.0876: completion match not displayed when popup menu is not shown commit https://github.com/vim/vim/commit/2a78b7c70471527d83adef6b147dbfb6c9f838f7 Author: Bram Moolenaar Date: Tue Feb 5 20:12:06 2019 +0100 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) diff --git a/src/edit.c b/src/edit.c --- a/src/edit.c +++ b/src/edit.c @@ -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(); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 876, +/**/ 875, /**/ 874,