summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-08-11 11:57:04 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-08-11 11:57:04 +0000
commitad25b67e3d0bf8a3fa0c5ee2ded7af67b20fe1eb (patch)
tree4ea60add99593e5db3c54ac3d531c1457cf9b4f7
parent4f5e97a0bf849da13eac76628c5cf64bc88396c7 (diff)
downloadzsh-ad25b67e3d0bf8a3fa0c5ee2ded7af67b20fe1eb.tar.gz
zsh-ad25b67e3d0bf8a3fa0c5ee2ded7af67b20fe1eb.tar.xz
zsh-ad25b67e3d0bf8a3fa0c5ee2ded7af67b20fe1eb.zip
20254: restrict scope of the default tag-order to fix a problem with cdrecord
completion. Ideally the tag-order should go but _arguments currently needs it.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Base/Core/_tags1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 79151eee0..ef6fcf189 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-11  Oliver Kiddle  <opk@zsh.org>
+
+	* 20254: Completion/Base/Core/_tags: restrict the scope of the
+	default tag-order to fix a problem with cdrecord completion
+
 2004-08-07  Oliver Kiddle  <opk@zsh.org>
 
 	* 20237: Completion/Unix/Command/_screen: rewrite completion of
diff --git a/Completion/Base/Core/_tags b/Completion/Base/Core/_tags
index 23cfec877..63087e20d 100644
--- a/Completion/Base/Core/_tags
+++ b/Completion/Base/Core/_tags
@@ -41,6 +41,7 @@ if (( $# )); then
     "$_sort_tags" "$@"
   else
     zstyle -a ":completion:${curcontext}:" tag-order order ||
+        (( ! ${@[(I)options]} )) ||
         order=('(|*-)argument-* (|*-)option[-+]* values' options)
 
     for tag in $order; do