about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_hash
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh/Command/_hash')
-rw-r--r--Completion/Zsh/Command/_hash3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_hash b/Completion/Zsh/Command/_hash
index 80c136118..d4bb59d28 100644
--- a/Completion/Zsh/Command/_hash
+++ b/Completion/Zsh/Command/_hash
@@ -33,7 +33,8 @@ if [[ $state = hashval ]]; then
   elif compset -P 1 '*='; then
     _wanted -C value values expl 'executable file' _files -g '*(-*)' && ret=0
   else
-    _wanted -C name commands expl command compadd -q -S '=' -k commands && ret=0
+    curcontext="${curcontext%:*}:name"
+    _path_commands -q -S '=' && ret=0
   fi
 fi