From d1601106465f957957e65d8f2ad9b92a1c99a6a1 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 31 Aug 1999 13:59:42 +0000 Subject: zsh-workers/7577 --- Src/subst.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Src/subst.c') 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; -- cgit 1.4.1