summaryrefslogtreecommitdiffstats
path: root/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/filter.c b/filter.c
index 11637a29..37a27bcb 100644
--- a/filter.c
+++ b/filter.c
@@ -280,6 +280,8 @@ static val trie_filter_string(val filter, val str)
}
if (match) {
+ if (!stringp(subst) && chrp(subst))
+ subst = tostringp(subst);
string_extend(out, subst);
i = plus(match, one);
} else {