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

login
register
mail settings
Submitter Gilles Moris
Date March 22, 2013, 9:55 p.m.
Message ID <ff516bb09c17b68ad6b4.1363989317@fc8>
Download mbox | patch
Permalink /patch/1166/
State Accepted
Commit 4f1e70ef5a79f4558e1571e64c2bf355038d882f
Headers show

Comments

Gilles Moris - March 22, 2013, 9:55 p.m.
# HG changeset patch
# User Nikolaj Sjujskij <sterkrig@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

Patch

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