about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-02-11 16:28:29 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-02-11 16:28:29 +0000
commitae7d5b55030ee124e5bf28478264aafde3bfcc64 (patch)
treebfdbbb6399613b52be569d351faed7188ccc6015 /Completion
parentd013696802dacb673c4545636f29ee4c6e079ca6 (diff)
downloadzsh-ae7d5b55030ee124e5bf28478264aafde3bfcc64.tar.gz
zsh-ae7d5b55030ee124e5bf28478264aafde3bfcc64.tar.xz
zsh-ae7d5b55030ee124e5bf28478264aafde3bfcc64.zip
users/12547: [0] -> [1] in completion arrays
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Darwin/Type/_mac_files_for_application2
-rw-r--r--Completion/Unix/Command/_locate4
2 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Darwin/Type/_mac_files_for_application b/Completion/Darwin/Type/_mac_files_for_application
index cd4c7860b..299d8ff5c 100644
--- a/Completion/Darwin/Type/_mac_files_for_application
+++ b/Completion/Darwin/Type/_mac_files_for_application
@@ -66,7 +66,7 @@ _mac_files_for_application() {
 
   case ${#glob_patterns} in
     0) return 1 ;;
-    1) _files "$opts[@]" -g "$glob_patterns[0]" ;;
+    1) _files "$opts[@]" -g "$glob_patterns[1]" ;;
     *) _files "$opts[@]" -g "{${(j/,/)glob_patterns}}" ;;
   esac
 }
diff --git a/Completion/Unix/Command/_locate b/Completion/Unix/Command/_locate
index 2b487b401..dc53ee3eb 100644
--- a/Completion/Unix/Command/_locate
+++ b/Completion/Unix/Command/_locate
@@ -1,7 +1,7 @@
 #compdef locate mlocate slocate
 
 # Decide if we are using mlocate or slocate.
-local ltype basename=${words[0]:t} input
+local ltype basename=${words[1]:t} input
 # If we can't, use this guess.
 local best_guess=mlocate
 
@@ -11,7 +11,7 @@ case $basename in
   ;;
 
   (locate)
-  input="$(_call_program locate $words[0] -V)"
+  input="$(_call_program locate $words[1] -V)"
   case $input in
     (*mlocate*)
     ltype=mlocate