about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2018-07-29 13:43:50 -0500
committerMatthew Martin <phy1729@gmail.com>2018-07-29 13:43:50 -0500
commit346c6ef5786a26cc55eded4d1c1d8a838ffc06e6 (patch)
tree329102ed3d49ceb17e61d6db9dc43f7ea7ef25e6
parent79153bec16073c6e28e6f22e260c79f98ad32e66 (diff)
downloadzsh-346c6ef5786a26cc55eded4d1c1d8a838ffc06e6.tar.gz
zsh-346c6ef5786a26cc55eded4d1c1d8a838ffc06e6.tar.xz
zsh-346c6ef5786a26cc55eded4d1c1d8a838ffc06e6.zip
43185: Use [ suffix for associative arrays; add + to remove-chars
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Type/_command_names3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 207d42946..13abc5622 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-29  Matthew Martin  <phy1729@gmail.com>
+
+	* 43185: Completion/Zsh/Type/_command_names: Use [ suffix for
+	associative arrays. Add + to remove-chars from Oliver.
+
 2018-07-25  dana  <dana@dana.is>
 
 	* 43203: Completion/Unix/Command/_lua: Add completion for lua
diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names
index 940f341cb..f8188774d 100644
--- a/Completion/Zsh/Type/_command_names
+++ b/Completion/Zsh/Type/_command_names
@@ -31,7 +31,8 @@ else
     'suffix-aliases:suffix alias:_suffix_alias_files'
     'reserved-words:reserved word:compadd -Qk reswords'
     'jobs:: _jobs -t'
-    'parameters:: _parameters -g "^*readonly*" -qS= -r "\n\t\- =["'
+    'parameters:: _parameters -g "^*(readonly|association)*" -qS= -r "\n\t\- =[+"'
+    'parameters:: _parameters -g "*association*~*readonly*" -qS\[ -r "\n\t\- =[+"'
   )
 fi