summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
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 3b501e55..3e10b9bb 100644
--- a/match.c
+++ b/match.c
@@ -418,7 +418,7 @@ static val search_form(match_line_ctx *c, val needle_form, val from_end)
match_line(ml_specline_pos(*c, spec, pos)));
if (new_pos) {
c->bindings = new_bindings;
- return cons(pos, new_pos);
+ return cons(pos, minus(new_pos, pos));
}
}