From fecdd7815514b30f65be515bf9f972d4789647f7 Mon Sep 17 00:00:00 2001 From: tinogomes Date: Tue, 16 Aug 2011 20:14:14 -0300 Subject: [PATCH] fixing mercurial completion --- plugins/mercurial/_mercurial | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/mercurial/_mercurial b/plugins/mercurial/_mercurial index 2ca57ef07..f1bdcc525 100644 --- a/plugins/mercurial/_mercurial +++ b/plugins/mercurial/_mercurial @@ -1,5 +1,3 @@ -# by tinogomes - #compdef hg #autoload @@ -104,6 +102,7 @@ _global_options=( '(--profile)'--profile'[print command execution profile]' '(--version)'--version'[output version information and exit]' '(-h --help)'{-h,--help}'[display help and exit]' + "*::archieve file:_files -g '(#i)*.*'" ) local -a _command_options @@ -587,9 +586,9 @@ case "$words[1]" in '(-r --rev REV)'{-r,--rev}'[revision]' ) ;; + *) esac _arguments \ $_global_options \ - $_command_options \ - "*::archieve file:_files -g '(#i)*.*'" && return 0 + $_command_options