summaryrefslogtreecommitdiff
path: root/etc/completions/__git_files
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-01 16:18:33 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-01 16:18:33 +0100
commitc7ab8229523525dc101a8fb6619bae4f6fbd7896 (patch)
tree0ce2370168e03c8c03494d0ed70907079efb5152 /etc/completions/__git_files
parente878c394b2f23b6559c2fa888deb7ae9ce73c4a4 (diff)
__git_files: Apparently everything works now
Diffstat (limited to 'etc/completions/__git_files')
-rw-r--r--etc/completions/__git_files2
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 {