about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-02-06 23:06:07 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-02-06 23:06:07 +0900
commit2810317ae2f2f96d06add76c17510a90f2ea3f62 (patch)
tree5bfacc3a2705eb6f8c9b894fb7c2c2dccefde15c
parent1a91cb7fb16423337f9d745f78bd3ae7215c2214 (diff)
downloadzsh-2810317ae2f2f96d06add76c17510a90f2ea3f62.tar.gz
zsh-2810317ae2f2f96d06add76c17510a90f2ea3f62.tar.xz
zsh-2810317ae2f2f96d06add76c17510a90f2ea3f62.zip
34456: lopts should be initialized as an array
otherwise an empty element remains in lopts, which causes
a trouble when _arguments -- '*:' is called.
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Base/Utility/_arguments2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a983f0df..d14fc5345 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-03  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+	* 34456: _arguments: lopts should be initialized as an array
+
 2015-02-06  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* users/19825: Doc/Zsh/manual.yo: clear statement that zsh is
diff --git a/Completion/Base/Utility/_arguments b/Completion/Base/Utility/_arguments
index d70c44259..1f35e8d43 100644
--- a/Completion/Base/Utility/_arguments
+++ b/Completion/Base/Utility/_arguments
@@ -26,7 +26,7 @@ if (( long )); then
 
   if (( ! ${(P)+name} )); then
     local iopts sopts pattern tmpo dir cur cache
-    typeset -U lopts
+    typeset -Ua lopts
 
     cache=()