summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2010-04-28 12:16:59 +0000
committerClint Adams <clint@users.sourceforge.net>2010-04-28 12:16:59 +0000
commitb4014f00a6f41eb781ba02271a1eadc6fe7a4ce2 (patch)
tree7001b6434396741ed9226c8c8bff42b0d46bcf2a
parentedc01c0455e894f0ba3ff1caa5b545110271d3ac (diff)
downloadzsh-b4014f00a6f41eb781ba02271a1eadc6fe7a4ce2.tar.gz
zsh-b4014f00a6f41eb781ba02271a1eadc6fe7a4ce2.tar.xz
zsh-b4014f00a6f41eb781ba02271a1eadc6fe7a4ce2.zip
Bernd Zeimetz: 27931: completion for bts affects.
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Debian/Command/_bts11
2 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c23ef3f1e..ba1884d99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-28  Clint Adams  <clint@zsh.org>
+
+	* Bernd Zeimetz: 27931: Completion/Debian/Command/_bts:
+	completion for bts affects.
+
 2010-04-28  Peter Stephenson  <pws@csr.com>
 
 	* Mikael: 27929: Src/lex.c, Doc/Zsh/options.yo (added pws): global
@@ -13086,5 +13091,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4969 $
+* $Revision: 1.4970 $
 *****************************************************
diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index fb5cc52e3..8ef1530c7 100644
--- a/Completion/Debian/Command/_bts
+++ b/Completion/Debian/Command/_bts
@@ -26,7 +26,7 @@ if [[ CURRENT -eq 1 ]]; then
       reassign merge unmerge tag tags severity forwarded notforwarded help \
       clone submitter found notfound block unblock user usertag usertags \
       package owner noowner reportspam cache cleancache claim unclaim \
-      subscribe unsubscribe fixed notfixed
+      subscribe unsubscribe fixed notfixed affects
   return
 fi
 
@@ -216,6 +216,15 @@ case "$words[1]" in
       _wanted sep expl 'separator' compadd -S ' ' , .
     fi
   ;;
+  (affects)
+    if [[ CURRENT -eq 2 ]]; then
+      _message -e bugnum 'bug number'
+    elif [[ CURRENT -eq 3 ]]; then
+      _wanted operator expl 'operator' compadd - '+' '-' '='
+    else
+      _wanted package expl 'package' _deb_packages avail
+    fi
+  ;;
   help)
   ;&
   *) _wanted sep expl 'separator' compadd -S ' ' , .