From c7ab8229523525dc101a8fb6619bae4f6fbd7896 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 1 Feb 2009 16:18:33 +0100 Subject: __git_files: Apparently everything works now --- etc/completions/__git_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/completions/__git_files') diff --git a/etc/completions/__git_files b/etc/completions/__git_files index dd2040d..88e9d1b 100644 --- a/etc/completions/__git_files +++ b/etc/completions/__git_files @@ -23,7 +23,7 @@ if [[ ! -d .git ]] { prefix='' item=(${(s:/:)files[$i]}) self=(${(s:/:)dirdiff}) - for ((j = 1; j <= ${#item} && j <= ${#self}; j++)) { + for ((j = 1; j <= ${#self}; j++)) { if [[ $item[$j] == $self[$j] ]] { item[$j]='' } else { -- cgit v1.2.3