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)
diff --git a/src/edit.c b/src/edit.c
index a60d922..6dae4a0 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -3891,8 +3891,9 @@
&& 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)