about summary refs log tree commit diff
path: root/Completion/Builtins/_which
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Builtins/_which')
-rw-r--r--Completion/Builtins/_which2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Builtins/_which b/Completion/Builtins/_which
index aceec85a0..da78b9358 100644
--- a/Completion/Builtins/_which
+++ b/Completion/Builtins/_which
@@ -11,7 +11,7 @@ cargs=( \
 farg='-f[output contents of functions]'
 aarg='-a[print all occurences in path]'
 
-case ${words[1]} in
+case ${service} in
   whence)
     _arguments -C -s \
       '(-c -w)-v[verbose output]' \