From 9b4962a7720b908479ad1044b1ecc83eb7832262 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 28 Sep 2017 00:54:35 +0200 Subject: 41762: fix for completion in assignment to associative array element --- ChangeLog | 5 +++++ Completion/Zsh/Context/_value | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 56a5cdbb7..d11b6ebd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-09-28 Oliver Kiddle + + * 41762: Completion/Zsh/Context/_value: fix for completion + in assignment to associative array element + 2017-09-27 Barton E. Schaefer * 41767: Src/exec.c: preserve nonzero exit status on interrupt 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 -- cgit 1.4.1