summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-09-28 00:54:35 +0200
committerOliver Kiddle <opk@zsh.org>2017-09-28 09:31:35 +0200
commit9b4962a7720b908479ad1044b1ecc83eb7832262 (patch)
tree9e883e375df44d2b4ac3cb7f09010101f4112c6e /Completion
parent7a0718796a56be64b5498806b4d8491ef2f9bb7d (diff)
downloadzsh-9b4962a7720b908479ad1044b1ecc83eb7832262.tar.gz
zsh-9b4962a7720b908479ad1044b1ecc83eb7832262.tar.xz
zsh-9b4962a7720b908479ad1044b1ecc83eb7832262.zip
41762: fix for completion in assignment to associative array element
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Context/_value2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Context/_value b/Completion/Zsh/Context/_value
index 22372ab36..5e74100c6 100644
--- a/Completion/Zsh/Context/_value
+++ b/Completion/Zsh/Context/_value
@@ -22,7 +22,7 @@ if [[ "$service" != -value-,* ]]; then
             -value-,{${compstate[parameter]},-default-},${^strs}
 else
   if [[ "$compstate[parameter]" != *-* &&
-        "$compstate[context]" = *value &&
+        "$compstate[context]" = array_value &&
         "${(Pt)${compstate[parameter]}}" = assoc* ]]; then
     local expl
     if (( CURRENT & 1 )); then