Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _bts: Complete removal syntaxes correctly.



The incumbent pattern matched the minus in 'bts tag 42 - <TAB>' (and other,
similar subcommands).
---
 Completion/Debian/Command/_bts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index d7aac9e..f415989 100644
--- a/Completion/Debian/Command/_bts
+++ b/Completion/Debian/Command/_bts
@@ -17,7 +17,7 @@ _arguments -A "-*" \
   '(--no-conf --noconf)*'{--no-conf,--noconf}'[do not read any config files]' \
   '*:subcommand and args:->subcmds' && return 0
 
-compset -N '-[^0-9]#' && first=0
+compset -N '-[^0-9]##' && first=0
 compset -N '[,.]' && first=0
 [[ $first -eq 0 ]] || compset -n 2
 



Messages sorted by: Reverse Date, Date, Thread, Author