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

Re: Bug#236350: zsh: _prefix completer broken?

Bart wrote:
> The add-space style does default to true, and you're seeing exactly what
> you should be seeing.  What you (and possibly the documentation) missed
> is that the add-space style applies only to the _expand and _prefix
> completers, so its default setting makes no difference if you aren't
> using one of those.

I can reproduce:
% zsh -f
% autoload -U compinit; compinit
% setopt completeinword
% zstyle ':completion:*' completer _complete _prefix
% egre<tab>foo
% egrepfoo
  with the cursor over the f.

So where's the space?
Now set: zstyle ':completion:*' add-space true
and try again. Is it perhaps just meant to be for _expand that
add-space defaults to true?

> In both 4.2.0-pre-3 and 4.0.7, my completion style looks like this:
> zstyle ':completion:*' completer \
>   _oldlist _expand _complete _match _ignored _approximate _prefix
> However, 4.2.0-pre-3 never gets beyond trying _approximate.  The output

This is the bug I reported in 17846.

For now, I moved _prefix before _approximate.


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