about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-10-25 18:01:41 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-10-25 18:01:41 +0000
commit048ac23985eab7913e9a1b6013324657bb7750ac (patch)
tree503761e2df16c1025e2fa8f75e716e72e6d7d8a1 /Src/Zle/zle_tricky.c
parent71963da3975f941ce37a36fe99d60462226659e2 (diff)
downloadzsh-048ac23985eab7913e9a1b6013324657bb7750ac.tar.gz
zsh-048ac23985eab7913e9a1b6013324657bb7750ac.tar.xz
zsh-048ac23985eab7913e9a1b6013324657bb7750ac.zip
22911: use QT_BACKSLASH if instring is QT_NONE
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 09a0be5d8..b0fb6e8ac 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -417,7 +417,8 @@ mod_export int instring, inbackt;
  * This uses the instring variable above.
  */
 
-#define quotename(s, e) quotestring(s, e, instring)
+#define quotename(s, e) \
+quotestring(s, e, instring == QT_NONE ? QT_BACKSLASH : instring)
 
 /* Check if the given string is the name of a parameter and if this *
  * parameter is one worth expanding.                                */