summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-11-19 20:43:13 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-11-19 20:43:13 -0800
commit2cc166bafadd85ca85680997072c8380d039f8c9 (patch)
tree3b211dbf63e40fee98f62d2e30b3a6462efcab83 /match.c
parent4ac284ddd4bbf4c3c02c0531795baf669bca4f54 (diff)
downloadtxr-2cc166bafadd85ca85680997072c8380d039f8c9.tar.gz
txr-2cc166bafadd85ca85680997072c8380d039f8c9.tar.bz2
txr-2cc166bafadd85ca85680997072c8380d039f8c9.zip
Bug #34866
* match.c (h_skip): Bugfix. Return the length of the line if the skip is to the end of line, not the value t. * txr.1: Clarify that @var@(skip)text is useless.
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 bb3da027..3df2656c 100644
--- a/match.c
+++ b/match.c
@@ -621,7 +621,7 @@ static val h_skip(match_line_ctx c, match_line_ctx *cout)
if (!rest(c.specline)) {
debuglf(elem,
lit("skip to end of line ~a:~a"), c.file, c.data_lineno, nao);
- return cons(c.bindings, t);
+ return cons(c.bindings, length_str(c.dataline));
}
{