summaryrefslogtreecommitdiff
path: root/footobar.c
diff options
context:
space:
mode:
authorToby Goodwin <toby@paccrat.org>2014-09-01 22:39:21 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:25 +0100
commit517ced5334f62771153cc16c73ba382c7da42f8e (patch)
treef62f04e7732e3cf01fe4a76b805f9733b4e4a77a /footobar.c
parent4648857ce124cff7bbe41f29cfadf0f8a2393b1e (diff)
fix both Zekoll and Neukirchen bugs
Diffstat (limited to 'footobar.c')
-rw-r--r--footobar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/footobar.c b/footobar.c
index c3ce07c..d6f6dfd 100644
--- a/footobar.c
+++ b/footobar.c
@@ -75,7 +75,8 @@ static bool Tconv(Format *f, int ignore) {
case nForin: fmtprint(f, "for(%T in %T)%T", n->u[0].p, n->u[1].p, n->u[2].p); break;
case nVarsub: fmtprint(f, "$%T(%T)", n->u[0].p, n->u[1].p); break;
case nWord:
- fmtprint(f, quotep(n->u[0].s, dollar) ? "%#S" : "%S", n->u[0].s);
+ fmtprint(f, n->u[2].i && quotep(n->u[0].s, dollar) ?
+ "%#S" : "%S", n->u[0].s);
break;
case nLappend: {
static bool inlist;