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. --- ChangeLog | 6 ++++++ Completion/Unix/Type/_path_commands | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf44bb3ca..0c32988d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,12 @@ * 24572: Doc/Zsh/calsys.yo, Functions/Calendar/calendar_add: add style reformate-date. +2008-02-19 Barton E. Schaefer + + * 24570: Completion/Unix/Type/_path_commands: don't attempt to + pre-filter $commands on $PREFIX, just let compadd deal with it. + Fixes a bad interaction with the _approximate completer. + 2008-02-17 Barton E. Schaefer * users/12600: Src/builtin.c: reorder handling of -s/-d/-t options 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