0
0
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:
Bram Moolenaar
2012-01-26 18:58:38 +01:00
parent 8e808d2b4d
commit 6110a006d5
2 changed files with 7 additions and 0 deletions

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.