mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
8e808d2b4d
commit
6110a006d5
@ -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,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user