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

Re: completion with ksh_arrays broken since 4.3.12



On 22 July 2011 15:04, Christopher Zimmermann <madroach@xxxxxxxxx> wrote:
> Hi,
>
> I just upgraded to zsh 4.3.12 and now completion with zsh_arrays is broken:
>
> % compinit
> % setopt ksh_arrays
> % ls [TAB]
> (eval):2: bad set of key/value pairs for associative array
> _main_complete:126: command not found: [@][@]
> _main_complete:165: command not found: _complete[@]
> _main_complete:186: bad output format specification
> % ls

This is my fault, I'll commit this fix:

diff --git a/Completion/compinit b/Completion/compinit
index a0f2348..d25642e 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -161,7 +161,7 @@ _comp_options=(
 # and don't get confused by user's ZERR trap handlers.

 typeset -g _comp_setup='local -A _comp_caller_options;
-             _comp_caller_options=(${(kv)options});
+             _comp_caller_options=(${(kv)options[@]});
              setopt localoptions localtraps ${_comp_options[@]};
              local IFS=$'\'\ \\t\\r\\n\\0\''
              exec </dev/null;


-- 
Mikael Magnusson



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