James McCoy wrote:

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

Thanks for reporting this problem.  I'll look into it soon.

-- 
Our job was to build a computer information system for the branch banks.  We
were the perfect people for the job: Dean had seen a computer once, and I had
heard Dean talk about it.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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