From patchwork Thu Jan 17 01:02:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fixing an issue with zsh completion that occurs with long branch or tag names From: Johannes Schlatow X-Patchwork-Id: 672 Message-Id: <50F74D8F.4050601@schlatow.name> To: mercurial-devel@selenic.com Date: Thu, 17 Jan 2013 02:02:07 +0100 # HG changeset patch # User Johannes Schlatow # Date 1358384150 -3600 # Node ID 75f74f803081bc10e4d21102c9882038fd9ed434 # Parent ec4fc4474af7dcedd182c4f9153884f4e852e089 zsh_completion: fix issue with overlong branch/tag names diff -r ec4fc4474af7 -r 75f74f803081 contrib/zsh_completion --- a/contrib/zsh_completion Thu Jan 17 01:06:00 2013 +0100 +++ b/contrib/zsh_completion Thu Jan 17 01:55:50 2013 +0100 @@ -174,7 +174,7 @@ _hg_cmd tags | while read tag do - tags+=(${tag/ # [0-9]#:*}) + tags+=(${tag/ #[0-9]#:*}) done (( $#tags )) && _describe -t tags 'tags' tags } @@ -198,7 +198,7 @@ _hg_cmd branches | while read branch do - branches+=(${branch/ # [0-9]#:*}) + branches+=(${branch/ #[0-9]#:*}) done (( $#branches )) && _describe -t branches 'branches' branches }