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

Re: Few newbie questions..



On Aug 21, I wrote:
}
} Index: Completion/Unix/Command/_man
} +  if [[ $sect = (<->*|1M|l|n) || $sect = \((*\|*)\) ]]; then

I just noticed that this means that

	zsh% man l<TAB>

won't complete what you expect, because it tries to complete manual pages
in section `l' that begin with `l'.  (This is not new with my patch.)

This means we should do something different when CURRENT==2, but I'm not
sure exactly what.  The easiest change is probably to replace

+  else
+    sect=$words[2]

with

+  elif ((CURRENT > 2))
+    sect=$words[2]

but perhaps we should actually offer to complete section numbers?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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