about summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-04-22 18:10:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-04-22 18:10:42 +0000
commit5eb53bf88d3153510f0a5304e921b46419fe5721 (patch)
tree944578b22dcca9b8a6d3e1b211dfd04386ced7a6 /Completion/Zsh/Command
parent19fe2dcc03d6f3c418e738061e46d0ae013c2550 (diff)
downloadzsh-5eb53bf88d3153510f0a5304e921b46419fe5721.tar.gz
zsh-5eb53bf88d3153510f0a5304e921b46419fe5721.tar.xz
zsh-5eb53bf88d3153510f0a5304e921b46419fe5721.zip
30431 with typo in _typeset fix:
add ${...:|...} and ${...:*...} operators, as documented
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/_typeset6
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index 9c9165563..d44783d64 100644
--- a/Completion/Zsh/Command/_typeset
+++ b/Completion/Zsh/Command/_typeset
@@ -75,9 +75,11 @@ if [[ "$state" = vars_eq ]]; then
     if (( $+opt_args[-w] ));then
       _wanted files expl 'zwc file' _files -g '*.zwc(-.)'
     elif [[ $service = autoload || -n $opt_args[(i)-[uU]] ]]; then
-      args=(${^fpath}/*(:t))
+      args=(${^fpath}/*(-.:t))
       # Filter out functions already loaded or marked for autoload.
-      args=(${args:#(${(kj.|.)~functions})})
+      local -a funckeys
+      funckeys=(${(k)functions})
+      args=(${args:|funckeys})
       _wanted functions expl 'shell function' compadd -a args
     else
       _functions