summaryrefslogtreecommitdiff
path: root/Completion/Core/_complete
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_complete')
-rw-r--r--Completion/Core/_complete16
1 files changed, 1 insertions, 15 deletions
diff --git a/Completion/Core/_complete b/Completion/Core/_complete
index e50f73b2e..83b918135 100644
--- a/Completion/Core/_complete
+++ b/Completion/Core/_complete
@@ -36,21 +36,7 @@ fi
# If we are inside `vared' and we don't have a $compcontext, we treat
# this like a parameter assignment. Which it is.
-if [[ -n $compstate[vared] ]]; then
- if [[ $compstate[vared] = *\[* ]]; then
- # vared on an array-element
- compstate[parameter]=${compstate[vared]%%\[*}
- compstate[context]=value
- else
- # vared on a parameter, let's see if it is an array
- compstate[parameter]=$compstate[vared]
- if [[ ${(tP)compstate[vared]} = *(array|assoc)* ]]; then
- compstate[context]=array_value
- else
- compstate[context]=value
- fi
- fi
-fi
+[[ -n $compstate[vared] ]] && compstate[context]=vared
# For arguments and command names we use the `_normal' function.