1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

Frank Terbeck: 25640: another alias handling fix.

This commit is contained in:
Clint Adams 2008-09-10 22:56:37 +00:00
parent b62584cbcd
commit f95570c403
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2008-09-10 Clint Adams <clint@zsh.org>
* Frank Terbeck: 25640: Completion/Unix/Command/_git: another alias
handling fix.
* 25639: Src/hist.c: free ptr2 if hsubl is NULL.
* 25638: Src/Zle/compmatch.c: remove unnecessary ternary expression

View file

@ -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