If user complete function return -1, it stop completion.
But "Patter Not Found" is shown. So when completion is working
automatically,
bottom line flicker to no purpose.
diff -r 484291e1a8da runtime/doc/insert.txt
--- a/runtime/doc/insert.txt Mon Jan 23 20:48:40 2012 +0100
+++ b/runtime/doc/insert.txt Tue Jan 24 10:22:44 2012 +0900
@@ -1010,7 +1010,8 @@
at the characters just before the cursor and including those characters
that
could be part of the completed item. The text between this column and the
cursor column will be replaced with the matches. Return -1 if no
completion
-can be done.
+can be done. The completion will be canceled. If you want to cancel
+gracefully, return -2.
On the second invocation the arguments are:
a:findstart 0
diff -r 484291e1a8da src/edit.c
--- a/src/edit.c Mon Jan 23 20:48:40 2012 +0100
+++ b/src/edit.c Tue Jan 24 10:22:44 2012 +0900
@@ -5188,6 +5188,12 @@
EMSG(_(e_compldel));
return FAIL;
}
+ /* This means user complete function cancel to complete
+ * gracefully. */
+ if (col < -1) {
+ /* Don't show any warnings. it should be gracefully. */
+ return FAIL;
+ }
/*
* Reset extended parameters of completion, when start new
--
If the function return -1, it show "Pattern Not Found". If -2, it don't
show it.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php