0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.2146

Problem:    Not enough testing for popup menu.  CTRL-E does not always work
            properly.
Solution:   Add more tests.  When using CTRL-E check if the popup menu is
            visible. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2016-08-02 22:36:02 +02:00
parent 86f2cd5bc5
commit 472472898a
4 changed files with 213 additions and 8 deletions

View File

@@ -3891,8 +3891,9 @@ ins_compl_prep(int c)
&& pum_visible())
retval = TRUE;
/* CTRL-E means completion is Ended, go back to the typed text. */
if (c == Ctrl_E)
/* CTRL-E means completion is Ended, go back to the typed text.
* but only do this, if the Popup is still visible */
if (c == Ctrl_E && pum_visible())
{
ins_compl_delete();
if (compl_leader != NULL)