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

insert-tab default



Peter Stephenson wrote:

>   insert-tab
>   
>        The default value of this style is `true' unless when completing
>        inside the vared builtin command, where it defaults to `false'.
> 
> This appears to be `untrue'.  You need to set it to use it.  I don't know
> which is right.  It seems to work if I redefine complete-word as a trivial
> widget which runs zle .complete-word.

Oops.  That's from:

  zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no

in _main_complete.  Should we change the code or the docs?

> By the way, I was having some problem with another apparently trivial
> widget, expand-or-complete() { zle .expand-or-complete; }, which frequently
> made the shell crash.  Unfortunately, it doesn't do this with the default
> settings and I haven't traced what was doing it.

Hm, can't reproduce that.  Will keep trying...


Bye
  Sven

P.S.: longest=( ${(M)array:#${~${(O@)array//?/?}[1]}} )

-- 
Sven Wischnowsky                    wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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