Dominique Pelle wrote:

> Bram Moolenaar wrote:
> 
> > Patch 7.3.198
> > Problem:    No completion for ":lang".
> > Solution:   Get locales to complete from. (Dominique Pelle)
> > Files:      src/eval.c, src/ex_cmds2.c, src/ex_getln.c,
> >            src/proto/ex_cmds2.pro, src/proto/ex_getln.pro, src/vim.h
> 
> 
> Hi Bram
> 
> Thanks for applying the patch.  I noticed that a piece is
> missing though in src/ex_docmd.c, which was in my
> original patch.

Sorry, I must have missed this.

> As result, the following command does not perform any
> completion in Vim-7.3.198:
> 
>   :language messages <C-D>
> 
> I would expect it to complete with available locales.
> 
> Attached patch fixes it.  This is almost the same as what was
> in my original patch, but I decided to change STRNICMP(...)
> into STRNCMP(...) or else the following command gave spurious
> locale completion:
> 
>   :language C <C-D>
> 
> "C" being a local name, it should not complete just because
> "C" matches the beginning of ctype.

Thanks, I'll look into it soon.

-- 
>From "know your smileys":
 :.-(   Crying

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