Mercurial > vim
comparison src/edit.c @ 15738:56be1282994f v8.1.0876
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 <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Feb 2019 20:15:05 +0100 |
parents | ad8b2c109b22 |
children | a6ca8cf07a98 |
comparison
equal
deleted
inserted
replaced
15737:4dd27b46f2f6 | 15738:56be1282994f |
---|---|
5019 if (!allow_get_expansion) | 5019 if (!allow_get_expansion) |
5020 { | 5020 { |
5021 /* may undisplay the popup menu first */ | 5021 /* may undisplay the popup menu first */ |
5022 ins_compl_upd_pum(); | 5022 ins_compl_upd_pum(); |
5023 | 5023 |
5024 // Redraw before showing the popup menu to show the user what was | 5024 if (pum_enough_matches()) |
5025 // inserted. | 5025 // Will display the popup menu, don't redraw yet to avoid flicker. |
5026 pum_call_update_screen(); | 5026 pum_call_update_screen(); |
5027 else | |
5028 // Not showing the popup menu yet, redraw to show the user what was | |
5029 // inserted. | |
5030 update_screen(0); | |
5027 | 5031 |
5028 /* display the updated popup menu */ | 5032 /* display the updated popup menu */ |
5029 ins_compl_show_pum(); | 5033 ins_compl_show_pum(); |
5030 #ifdef FEAT_GUI | 5034 #ifdef FEAT_GUI |
5031 if (gui.in_use) | 5035 if (gui.in_use) |