[PATCH 1 of 1 STABLE] zsh_completion: fix trailing Carriage Return spoiling tag completion

Gilles Moris gilles.moris at free.fr
Fri Mar 22 16:55:17 CDT 2013


# HG changeset patch
# User Nikolaj Sjujskij <sterkrig at myopera.com>
# Date 1363989196 -3600
# Node ID ff516bb09c17b68ad6b46cce3326a0bcd2ddcc1e
# Parent  a07be895373394be66ba38b1ff111e26aca03ac8
zsh_completion: fix trailing Carriage Return spoiling tag completion

This was giving the following error:
% hg up 2.5-r<Tab>
(eval):1: bad substitution
% hg up 2.5-r

diff -r a07be8953733 -r ff516bb09c17 contrib/zsh_completion
--- a/contrib/zsh_completion	Thu Feb 28 21:58:37 2013 -0600
+++ b/contrib/zsh_completion	Fri Mar 22 22:53:16 2013 +0100
@@ -176,7 +176,7 @@
   do
     tags+=(${tag/ #[0-9]#:*})
   done
-  (( $#tags )) && _describe -t tags 'tags' tags
+  (( $#tags )) && _describe -t tags 'tags' tags
 }
 _hg_bookmarks() {
   typeset -a bookmark bookmarks


More information about the Mercurial-devel mailing list