summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-21 13:47:07 -0400
committerKaz Kylheku <kaz@kylheku.com>2011-10-21 13:47:07 -0400
commitf421259f06ee0b81754d3f1d453625ff17cb97d7 (patch)
tree68f4a8370af30022c28f4eaca500ece49f7adea6 /match.c
parente98d94aa2a8c46c392eec4b7ac664eb989f3c589 (diff)
downloadtxr-f421259f06ee0b81754d3f1d453625ff17cb97d7.tar.gz
txr-f421259f06ee0b81754d3f1d453625ff17cb97d7.tar.bz2
txr-f421259f06ee0b81754d3f1d453625ff17cb97d7.zip
* match.c (v_output): When appending output to a variable,
flatten the previous contents so we can append to a single string, or to deeply nested list, etc. * txr.1: Documented these new extensions to next and output.
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index f5e7c1c8..a2bc8eb3 100644
--- a/match.c
+++ b/match.c
@@ -2180,7 +2180,7 @@ static val v_output(match_files_ctx c, match_files_ctx *cout)
if (existing) {
if (append) {
- *cdr_l(existing) = append2(cdr(existing), list_out);
+ *cdr_l(existing) = append2(flatten(cdr(existing)), list_out);
} else {
*cdr_l(existing) = list_out;
}