Martin Toft wrote:

> On Sat, Aug 18, 2007 at 10:29:04PM -0700, Yegappan Lakshmanan wrote:
> > Hi all,
> > 
> > It looks like filename completion in the command-line mode is broken
> > in Vim 7.1.82. I am running Vim 7.1.82 on Linux and see the following
> > issue.
> > 
> >     $ cd vim7/src
> >     $ vim
> >     :edit *unix*<Tab>
> > 
> > When I press <Tab> to complete the name of files containing the string
> > "unix" in them, it completes all the files in the current directory.
> > It appears the specified pattern is ignored. Is anyone else seeing
> > this problem?
> 
> It is introduced by patch 7.1.081 [1], which is supposed to fix this
> bug:
> 
> - Command line completion for a shell command: "cat </tmp/file<Tab>"
>   doesn't work.
> 
> In co-operation with Bram, I decided to make vim_isfilec() the judge of
> which characters to treat as white space when doing shell completion.
> We didn't think of your example ('*unix*<Tab>'), sorry.
> 
> I'll wait and see what Bram (or others) proposes as a solution.

My proposal is that you fix it :-)  We have mch_has_wildcard(), but it
applies to a whole string, so you need to do some more work.

-- 
Spam seems to be something useful to novices.  Later you realize that
it's a bunch of indigestable junk that only clogs your system.
Applies to both the food and the e-mail!

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui