Permalink
Browse files

updated for version 7.3.519

Problem:    When completefunction returns it cannot indicate end of completion
	    mode.
Solution:   Recognize completefunction returning -3.  (Mtsushita Shougo)
  • Loading branch information...
1 parent e07c1d7 commit 022e99b61a376473cbf67820e28baa8da3b32548 @brammool brammool committed May 18, 2012
Showing with 11 additions and 1 deletion.
  1. +9 −1 src/edit.c
  2. +2 −0 src/version.c
View
@@ -5205,9 +5205,17 @@ ins_complete(c)
}
/* Return value -2 means the user complete function wants to
- * cancel the complete without an error. */
+ * cancel the complete without an error.
+ * Return value -3 does the same as -2 and leaves CTRL-X mode.*/
if (col == -2)
return FAIL;
+ if (col == -3)
+ {
+ ctrl_x_mode = 0;
+ edit_submode = NULL;
+ msg_clr_cmdline();
+ return FAIL;
+ }
/*
* Reset extended parameters of completion, when start new
View
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 519,
+/**/
518,
/**/
517,

0 comments on commit 022e99b

Please sign in to comment.