Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH (?) Re: strange completion



On Fri, Jun 03, 2011 at 01:34:07AM -0700, Bart Schaefer wrote:
> -    if [[ "$tpre$tsuf" = */* ]]; then
> +    if [[ "$tpre$tsuf" = (#b)*/(*) && -n "$fake${match[1]}" ]]; then
Don't know why, but this patch breaks completion with
list-dirs-first set to true (see _files):

$ ls .zsh/Completion/<Tab>
Sorry. No match for: `files' or `directories'
$ ls .zsh/Completion/_<Tab>
---- files ----
_files       _path_files

However:

$ ls <Tab>
---- directories ----
...
---- files ----
...

As you can see, it refuses to complete files without known
prefix.  Can someone, please, look into tis issue?

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

Attachment: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author