about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-09-10 22:56:37 +0000
committerClint Adams <clint@users.sourceforge.net>2008-09-10 22:56:37 +0000
commitf95570c403aa073139c4b9fde5fd7c769d69fc6d (patch)
treeb3ce842c124365eaec27637b5d49301f80c33503 /Completion/Unix/Command
parentb62584cbcd7dbbb740b9420e37f34ee1b2e8ff18 (diff)
downloadzsh-f95570c403aa073139c4b9fde5fd7c769d69fc6d.tar.gz
zsh-f95570c403aa073139c4b9fde5fd7c769d69fc6d.tar.xz
zsh-f95570c403aa073139c4b9fde5fd7c769d69fc6d.zip
Frank Terbeck: 25640: another alias handling fix.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 87c43126b..13f519b91 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -4286,7 +4286,7 @@ if (( CURRENT >= 3 )) && [[ -n ${git_aliases[$words[2]]} ]] ; then
   if [[ -n "${words[3,-1]}" ]] ; then
       tmpwords+=(${words[3,-1]})
   fi
-  tmpwords+=('')
+  [[ -n ${words[$CURRENT]} ]] || tmpwords+=('')
   (( CURRENT += ${#expalias} - 1 ))
   words=("${tmpwords[@]}")
   unset tmpwords expalias