diff options
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 5 |
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; |