From f95570c403aa073139c4b9fde5fd7c769d69fc6d Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 10 Sep 2008 22:56:37 +0000 Subject: Frank Terbeck: 25640: another alias handling fix. --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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 -- cgit 1.4.1