changeset 18419:45bb5df43b81

zsh_completion: fix issue with overlong branch/tag names
author Johannes Schlatow <johannes@schlatow.name>
date Thu, 17 Jan 2013 01:55:50 +0100
parents e72126135252
children c2792fe15025
files contrib/zsh_completion
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
 }