about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-31 13:59:42 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-31 13:59:42 +0000
commitd1601106465f957957e65d8f2ad9b92a1c99a6a1 (patch)
treef68fb8c53bdec771c87473f50ce6a270ae0035fe /Src
parentbf0452b632d1b051de773143a0f9a3c0a84a61e0 (diff)
downloadzsh-d1601106465f957957e65d8f2ad9b92a1c99a6a1.tar.gz
zsh-d1601106465f957957e65d8f2ad9b92a1c99a6a1.tar.xz
zsh-d1601106465f957957e65d8f2ad9b92a1c99a6a1.zip
zsh-workers/7577
Diffstat (limited to 'Src')
-rw-r--r--Src/subst.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 70e5c1755..937251b52 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1662,9 +1662,10 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
 	int ops = opts[PROMPTSUBST], opb = opts[PROMPTBANG];
 	int opp = opts[PROMPTPERCENT], len;
 
-	opts[PROMPTPERCENT] = 1;
-	if (presc < 2)
+	if (presc < 2) {
+	    opts[PROMPTPERCENT] = 1;
 	    opts[PROMPTSUBST] = opts[PROMPTBANG] = 0;
+	}
 	if (isarr) {
 	    char **ap;