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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user