about summary refs log tree commit diff
path: root/Completion/Builtins/_vars_eq
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Builtins/_vars_eq')
-rw-r--r--Completion/Builtins/_vars_eq8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Builtins/_vars_eq b/Completion/Builtins/_vars_eq
index 9d7863ae6..1e8fa6d2b 100644
--- a/Completion/Builtins/_vars_eq
+++ b/Completion/Builtins/_vars_eq
@@ -1,9 +1,9 @@
 #compdef declare export integer local readonly typeset
 
-if compset -P '*=*:'; then
-  _default
-elif compset -P '*='; then
-  _default
+if [[ "$PREFIX" = *\=* ]]; then
+  compstate[parameter]="${PREFIX%%\=*}"
+  compset -P 1 '*='
+  _value
 else
   _parameters -q -S '='
 fi