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

Simon Olofsson: fix matching of subversion help text

This commit is contained in:
Peter Stephenson 2011-12-16 09:18:34 +00:00
parent 4264cab646
commit 0082320b79
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-12-16 Peter Stephenson <pws@csr.com>
* Simon Olofsson: 30028: Completion/Unix/Command/_subversion:
fix matching of subversion help text.
2011-12-14 Mikael Magnusson <mikachu@gmail.com>
* 30021: Completion/Zsh/Type/_globquals: Add d flag (see 29991),
@ -15762,5 +15767,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5542 $
* $Revision: 1.5543 $
*****************************************************

View file

@ -48,7 +48,7 @@ _svn () {
! _retrieve_cache svn-${cmd}-args;
then
args=(
${=${${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}
${=${${${(M)${(f)"$(LC_ALL=C _call_program options svn help $cmd)"#(*Valid options:|(#e))}:#* :*}%% #:*}/ (arg|ARG)/:arg:}/(#b)(-##)([[:alpha:]]##) \[--([a-z-]##)\](:arg:)#/(--$match[3])$match[1]$match[2]$match[4] ($match[1]$match[2])--$match[3]$match[4]}
)
_store_cache svn-${cmd}-args args
fi