diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-11-19 20:43:13 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-11-19 20:43:13 -0800 |
commit | 2cc166bafadd85ca85680997072c8380d039f8c9 (patch) | |
tree | 3b211dbf63e40fee98f62d2e30b3a6462efcab83 /match.c | |
parent | 4ac284ddd4bbf4c3c02c0531795baf669bca4f54 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } { |