> complete_check() doesn't clear compl_interrupted when called from
>> other script(not from completefunc or omnifunc).
>> So I fixed this below patch.
>
> When would a complete function be used while reading from a script?
> Can you give an example of where this problem occurs?

That is neocomplcache.
https://github.com/Shougo/neocomplcache
This plugin, call omnifunc while reading from a script to cache complete words.
So, omnifunc used complete_check(), return invalid value.

> Hmm, I would think that when the user is not involved complete_check()
> should not be called.

Yes, I think user shouldn't call complete_check() out of completefunc, too.
But, script call completefunc to gather candidates may be call
completefunc out fo completefunc condition.
So I think complete_check() function check whether from script.

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

Raspunde prin e-mail lui