Thanks to @Shougo. This issue is resolved. 

https://github.com/Valloric/YouCompleteMe/pull/651

On Nov 5, 2013, at 21:58, zhaocai <[email protected]> wrote:

> 
> On Nov 5, 2013, at 19:37, Shougo <[email protected]> wrote:
> 
>> Hi, I'm the author of neocomplete.
>> 
>>> Disable "Pattern not found" message unless verbose > 0
>> 
>> I think you wants to disable "Pattern not found" message in command line.
>> This feature is already implemented.
>> 
>> You should read ":help complete-functions".
>> The message is completion mode(CTRL-X mode) message.
>> So to disable it, you must exit completion mode if completion item is 
>> nothing.
>> 
>> If complete function returns -3, it leaves completion mode.
>> 
>>> Special return values:
>>> -1 If no completion can be done, the completion will be cancelled with an
>>>   error message.
>>> -2 To cancel silently and stay in completion mode.
>>> -3 To cancel silently and leave completion mode.
>> 
> 
> My understanding is: 
>       - The first invocation returns the completion start position; 
>       - The second invocation actually get the completion results. 
> 
> Now we need to do both in the first invocation and check if there is any 
> completion or not. Is this correct? 
> 
>> In neocomplete, this feature is already implemented.
>> So the problem is nothing.
>> But I don't know YouCompleteMe implementation.
>> 
>> -- 
>> -- 
>> 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
>> 
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "vim_dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> 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
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui