summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-01-26 18:58:38 +0100
committerBram Moolenaar <Bram@vim.org>2012-01-26 18:58:38 +0100
commit6110a006d5b46b850247ed2c85bb7d7614cba025 (patch)
tree91bd68123310aae73af3fa38c43fd71043d2a8e9 /src/edit.c
parent8e808d2b4d7e5edbde91f83bbdecfb97c881f847 (diff)
downloadvim-git-6110a006d5b46b850247ed2c85bb7d7614cba025.tar.gz
updated for version 7.3.418v7.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)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 08b555ba2..9a0abf94f 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -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.