about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compctl.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d46471aaf..540b98eb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-16  Peter Stephenson  <pws@csr.com>
+
+	* 22877: Src/Zle/compctl.c: string quoting used QT_NONE
+	instead of QT_BACKSLASH.
+
 2006-10-16  Geoff Wing  <gcw@zsh.org>
 
 	* unposted: Doc/Zsh/metafaq.yo, Etc/FAQ.yo: archive.progeny.com
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index 4cd9d9c65..b76cb64e7 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -1741,7 +1741,8 @@ static int addwhat;
  * This uses the instring variable exported from zle_tricky.c.
  */
 
-#define quotename(s, e) quotestring(s, e, instring)
+#define quotename(s, e) \
+quotestring(s, e, instring == QT_NONE ? QT_BACKSLASH : instring)
 
 /* Hook functions */