updated for version 7.3.418

Problem:    When a user complete function returns -1 an error message is
	    given.
Solution:   When -2 is returned stop completion silently. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2012-01-26 18:58:38 +01:00
parent 5a5ea6c869
commit 6fa99a85a2
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -5189,6 +5189,11 @@ ins_complete(c)
return FAIL;
}
/* Return value -2 means the user complete function wants to
* cancel the complete without an error. */
if (col == -2)
return FAIL;
/*
* Reset extended parameters of completion, when start new
* completion.
+2
View File
@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
418,
/**/
417,
/**/