Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: change in zstyle file-patterns handling between 5.5.1 & 5.6(.2)?
On 17 Sep 2018, at 08:01, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>I'm not sure, however, what that means in practice. I *thought* that in
>compadd, when an option flag is repeated its last occurrence wins, but
>'compadd -ld foo -d bar' uses $foo, not $bar...
Yeah, it's been my experience that, with compadd options, it's usually the
*first* one wins. That's why the list-dirs-first thing is broken; the
_path_files call when that's enabled has gone from this...
_path_files \
-J directories -X 'completing directory:' \
-g '*(-/)' \
-J argument-rest -X 'completing files:'
... to this...
_path_files \
-g '*(-/)' \
-J argument-rest -X 'completing files:' \
-J directories -X 'completing directory:'
... and so it never adds that directories group.
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author