summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-11-29 06:56:19 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-11-30 16:10:20 +0000
commitf90200c869dd5efa54dd410dc14cbd02f2f4ec05 (patch)
treebf66d13fcddb6d9cba179fb1d19d89ef991e164c
parent3ba86f4db44e6b5f854909fbc639ef3111ec176b (diff)
downloadzsh-f90200c869dd5efa54dd410dc14cbd02f2f4ec05.tar.gz
zsh-f90200c869dd5efa54dd410dc14cbd02f2f4ec05.tar.xz
zsh-f90200c869dd5efa54dd410dc14cbd02f2f4ec05.zip
40036: _bts: Complete removal syntaxes correctly.
The incumbent pattern matched the minus in 'bts tag 42 - <TAB>' (and other,
similar subcommands).
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_bts2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3255bf6b0..44fa6580b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-30  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 40036: Completion/Debian/Command/_bts: Complete removal
+	syntaxes correctly.
+
 2016-11-29  Barton E. Schaefer  <schaefer@brasslantern.com>
 
 	* 40034: Src/subst.c: clear badcshglob when ignoring errors
diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index d7aac9e3c..f415989b9 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