* PATCH: yet another fix for alias handling in _git
@ 2008-09-10 22:20 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2008-09-10 22:20 UTC (permalink / raw)
To: zsh workers
An empty word only needs to be added to $tmpwords[] if there was an
empty word at the end of $words[] in the first place.
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.102
diff -u -r1.102 _git
--- Completion/Unix/Command/_git 7 Sep 2008 16:52:28 -0000 1.102
+++ Completion/Unix/Command/_git 10 Sep 2008 22:19:11 -0000
@@ -4286,7 +4286,7 @@
if [[ -n "${words[3,-1]}" ]] ; then
tmpwords+=(${words[3,-1]})
fi
- tmpwords+=('')
+ [[ -n ${words[$CURRENT]} ]] || tmpwords+=('')
(( CURRENT += ${#expalias} - 1 ))
words=("${tmpwords[@]}")
unset tmpwords expalias
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-10 22:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-10 22:20 PATCH: yet another fix for alias handling in _git Frank Terbeck
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).