summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-17 06:50:03 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-17 06:50:03 +0000
commitf63d4066baa14beca966a1a9ebbd5dbcc121d52e (patch)
treedaeb1fe341fb55b07a240283e0c234232c7f45ad /Completion
parentf8551053e5e5462e55e56f9f0f4d2f9d14ec0236 (diff)
downloadzsh-f63d4066baa14beca966a1a9ebbd5dbcc121d52e.tar.gz
zsh-f63d4066baa14beca966a1a9ebbd5dbcc121d52e.tar.xz
zsh-f63d4066baa14beca966a1a9ebbd5dbcc121d52e.zip
fix completion after tilde and equal sign inside quotes (11429)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_main_complete12
1 files changed, 7 insertions, 5 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index be96ce6f2..03fb15f31 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -45,11 +45,13 @@ fi
 
 # Special completion contexts after `~' and `='.
 
-if compset -P 1 '='; then
-  compstate[context]=equal
-elif [[ "$PREFIX" != */* && "$PREFIX[1]" = '~' ]]; then
-  compset -p 1
-  compstate[context]=tilde
+if [[ -z "$compstate[quote]" ]]; then
+  if compset -P 1 '='; then
+    compstate[context]=equal
+  elif [[ "$PREFIX" != */* && "$PREFIX[1]" = '~' ]]; then
+    compset -p 1
+    compstate[context]=tilde
+  fi
 fi
 
 # Initial setup.