about summary refs log tree commit diff
diff options
context:
space:
mode:
-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.