mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -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.
|
||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
418,
|
||||
/**/
|
||||
417,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user