summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Zsh/Context/_subscript2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index afe89d678..8d01a0e0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-12-13  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 24239: Completion/Zsh/Context/_subscript: if the [ of
+	a subscript was backslashed, a trailing space was added
+	backslashed along with the "\[".
+
 	* 24236: Test/C02cond.ztst: another case where the wretched
 	cond -N test can fail.
 
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index 84510d263..7d01565ca 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -3,8 +3,8 @@
 local expl ind osuf=']' flags sep
 
 if [[ "$1" = -q ]]; then
-  osuf='] '
   compquote osuf
+  osuf+=' '
   shift
 fi