# HG changeset patch # User Johannes Schlatow # Date 1358384150 -3600 # Node ID 45bb5df43b81c3685ba57f9475534aafb0ae3eb6 # Parent e72126135252ce1bb746bde84484995f62208a9b zsh_completion: fix issue with overlong branch/tag names diff -r e72126135252 -r 45bb5df43b81 contrib/zsh_completion --- a/contrib/zsh_completion Wed Jan 16 20:52:56 2013 +0100 +++ b/contrib/zsh_completion Thu Jan 17 01:55:50 2013 +0100 @@ -174,11 +174,10 @@ _hg_cmd tags | while read tag do - tags+=(${tag/ # [0-9]#:*}) + tags+=(${tag/ #[0-9]#:*}) done - (( $#tags )) && _describe -t tags 'tags' tags + (( $#tags )) && _describe -t tags 'tags' tags } - _hg_bookmarks() { typeset -a bookmark bookmarks @@ -198,7 +197,7 @@ _hg_cmd branches | while read branch do - branches+=(${branch/ # [0-9]#:*}) + branches+=(${branch/ #[0-9]#:*}) done (( $#branches )) && _describe -t branches 'branches' branches }