From 0082320b79b49a12a497e730bb18807cc2d69bbd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 16 Dec 2011 09:18:34 +0000 Subject: Simon Olofsson: fix matching of subversion help text --- ChangeLog | 7 ++++++- Completion/Unix/Command/_subversion | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3424de67..1b7e9e33b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-16 Peter Stephenson + + * Simon Olofsson: 30028: Completion/Unix/Command/_subversion: + fix matching of subversion help text. + 2011-12-14 Mikael Magnusson * 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 $ ***************************************************** diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion index 88142d805..21d809dd1 100644 --- a/Completion/Unix/Command/_subversion +++ b/Completion/Unix/Command/_subversion @@ -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 -- cgit 1.4.1