about summary refs log tree commit diff
path: root/Completion/Builtins/_vars_eq
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-17 08:22:44 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-17 08:22:44 +0000
commit1fb481b8c28f555c4f9b787cc92498a3821541ec (patch)
tree49e3978fdb7a2b1d65f3ce13d1faa82305d09bc9 /Completion/Builtins/_vars_eq
parentcd45aa331dc206b1b40c5be5e222d46148bf42ac (diff)
downloadzsh-1fb481b8c28f555c4f9b787cc92498a3821541ec.tar.gz
zsh-1fb481b8c28f555c4f9b787cc92498a3821541ec.tar.xz
zsh-1fb481b8c28f555c4f9b787cc92498a3821541ec.zip
better completion after `=', everywhere (10780)
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