summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-12-13 21:38:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-12-13 21:38:42 +0000
commit7a598440f601e6cf27a38f3151a416dbcfd5b978 (patch)
tree6ebea919d4e663657d23958c8739148e9703e595
parentfc9dc5940f5eb87de19c6bc7485e2f8e8120895c (diff)
downloadzsh-7a598440f601e6cf27a38f3151a416dbcfd5b978.tar.gz
zsh-7a598440f601e6cf27a38f3151a416dbcfd5b978.tar.xz
zsh-7a598440f601e6cf27a38f3151a416dbcfd5b978.zip
24239: _subscript added too many backslashes
-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