about summary refs log tree commit diff
path: root/Completion/Core/_normal
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-07-24 14:01:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-07-24 14:01:54 +0000
commit14810d6df13e0564a606b74e4c4e918e80862e25 (patch)
tree0e24a6c6b0226a90bdf8398ce94b60fdc9a87b0e /Completion/Core/_normal
parentd6d4a3abfc84f0940e663cd69537789a039a7056 (diff)
downloadzsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.gz
zsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.xz
zsh-14810d6df13e0564a606b74e4c4e918e80862e25.zip
zsh-3.1.6-test-3 dot-zsh-199907241534
Diffstat (limited to 'Completion/Core/_normal')
-rw-r--r--Completion/Core/_normal6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Core/_normal b/Completion/Core/_normal
index ba7f2123f..6da653021 100644
--- a/Completion/Core/_normal
+++ b/Completion/Core/_normal
@@ -20,7 +20,11 @@ elif [[ "$command" == */* ]]; then
   cmd2="${command:t}"
 else
   cmd1="$command"
-  cmd2=$(whence -p $command)
+  if zmodload -e parameter; then
+    cmd2="$commands[$command]"
+  else
+    cmd2=$(whence -p $command)
+  fi
 fi
 
 # See if there are any matching pattern completions.