On Wed, Nov 30, 2011 at 02:57:44PM +0100, Bram Moolenaar wrote:
> 
> Patch 7.3.359
> Problem:    Command line completion shows dict functions.
> Solution:   Skip dict functions for completion. (Yasuhiro Matsumoto)
> Files:            src/eval.c
> 
> 
> *** ../vim-7.3.358/src/eval.c 2011-10-26 13:19:23.000000000 +0200
> --- src/eval.c        2011-11-30 14:53:38.000000000 +0100
> ***************
> *** 21737,21742 ****
> --- 21737,21745 ----
>           ++hi;
>       fp = HI2UF(hi);
>   
> +     if (fp->uf_flags & FC_DICT)
> +         return NULL; /* don't show dict functions */
> + 

This changes breaks completion of functions when a dict function is
defined.  Any scripts loaded after the script with the dict function
will not have their functions show up in the function completion.

It should be

    return ""; /* don't show dict functions */

to follow the behavior expected by ExpandGeneric and related functions.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui