From 16d0992622b9c26a0a1fc153749361a9066de819 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 5 Jun 2016 17:35:49 +0000 Subject: [PATCH] Fix addunused/dropunused completion. While here, add support for numeric ranges N-M. Fixes Schnouki/git-annex-zsh-completion#3. --- _git-annex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_git-annex b/_git-annex index eac4e6c..bcd4781 100644 --- a/_git-annex +++ b/_git-annex @@ -264,9 +264,8 @@ case $state in '*:path:_path_files' ;; (addunused|dropunused) - _alternative $common_opts \ - 'range:Numbers:_guard "[0-9]#" "range of unused objects"' \ - 'all:all objects:(all)' + _arguments : $common_opts \ + '*: : _alternative ": :_guard \"[0-9]#(-[0-9]#|)\" \"numeric range of unused objects\"" "all:all objects:(all)"' ;; (addurl) _arguments $common_opts \