about summary refs log tree commit diff
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
parentf8551053e5e5462e55e56f9f0f4d2f9d14ec0236 (diff)
downloadzsh-f63d4066baa14beca966a1a9ebbd5dbcc121d52e.tar.gz
zsh-f63d4066baa14beca966a1a9ebbd5dbcc121d52e.tar.xz
zsh-f63d4066baa14beca966a1a9ebbd5dbcc121d52e.zip
fix completion after tilde and equal sign inside quotes (11429)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Core/_main_complete12
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c461c760..43df8b1ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-17  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 11429: Completion/Core/_main_complete: fix completion after
+ 	tilde and equal sign inside quotes
+	
 2000-05-17  Tanaka Akira  <akr@zsh.org>
 
 	* 11426: Src/Modules/zpty.c: don't use #elif.
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.