From 9728d35cc2e872c1d1b485f68fcd3b8f7c60fbfa Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 19 Feb 2008 22:52:18 +0000 Subject: 24570: don't attempt to pre-filter $commands on $PREFIX, just let compadd deal with it. --- Completion/Unix/Type/_path_commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_path_commands') diff --git a/Completion/Unix/Type/_path_commands b/Completion/Unix/Type/_path_commands index 714e2e232..722129a2d 100644 --- a/Completion/Unix/Type/_path_commands +++ b/Completion/Unix/Type/_path_commands @@ -52,7 +52,7 @@ fi if [[ -n $need_desc ]]; then typeset -a dcmds descs cmds local desc cmd sep - for cmd in ${(@)commands[(I)$PREFIX*]}; do + for cmd in ${(k)commands}; do desc=$_command_descriptions[$cmd] if [[ -z $desc ]]; then cmds+=$cmd -- cgit 1.4.1