diff options
Diffstat (limited to 'etc/completions')
-rw-r--r-- | etc/completions/__git_files | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |