From ae7d5b55030ee124e5bf28478264aafde3bfcc64 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 11 Feb 2008 16:28:29 +0000 Subject: users/12547: [0] -> [1] in completion arrays --- Completion/Unix/Command/_locate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_locate') 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 -- cgit 1.4.1