about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Command/_disable2
-rw-r--r--Completion/Zsh/Command/_enable2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index becbc7762..6d6db453a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-18  Oliver Kiddle  <opk@zsh.org>
+
+	* 20077: Completion/Zsh/Command/_disable,
+	Completion/Zsh/Command/_enable: fix completion of reserved words
+
 2004-06-18  Peter Stephenson  <pws@csr.com>
 
 	* 20033: Completion/Base/Utility/_arguments: unconfirmed fix
diff --git a/Completion/Zsh/Command/_disable b/Completion/Zsh/Command/_disable
index 0e27944c9..9c1d576b9 100644
--- a/Completion/Zsh/Command/_disable
+++ b/Completion/Zsh/Command/_disable
@@ -3,6 +3,6 @@
 _arguments -C -s -A "-*" -S \
   "(-f -r)-a[act on aliases]:*:aliases:(${(k)aliases} ${(k)galiases})" \
   "(-a -r)-f[act on functions]:*:functions:(${(k)functions})" \
-  "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)reswords})" \
+  "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \
   '-m[treat arguments as patterns]' \
   "*:builtin command:(${(k)builtins})"
diff --git a/Completion/Zsh/Command/_enable b/Completion/Zsh/Command/_enable
index 380e3ba5d..c5f8b2c43 100644
--- a/Completion/Zsh/Command/_enable
+++ b/Completion/Zsh/Command/_enable
@@ -3,6 +3,6 @@
 _arguments -C -s -A "-*" -S \
   "(-f -r)-a[act on aliases]:*:aliases:(${(k)dis_aliases})" \
   "(-a -r)-f[act on functions]:*:functions:(${(k)dis_functions})" \
-  "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)dis_reswords})" \
+  "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k dis_reswords" \
   '-m[treat arguments as patterns]' \
   "*:builtin command:(${(k)dis_builtins})"