From f4e3a190b8508bf7000084f7f06155d17bd533cf Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Sun, 23 Aug 2026 11:10:11 +0100 Subject: [PATCH] Fix one off error in regex reverse search. --- src/internal/vase/regex/api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/vase/regex/api.cc b/src/internal/vase/regex/api.cc index ec82278..8dd9582 100644 --- a/src/internal/vase/regex/api.cc +++ b/src/internal/vase/regex/api.cc @@ -252,7 +252,7 @@ uint64_t Vase::find_prev(std::string_view pattern, uint64_t start) { } at--; } - at = lines(); + at = lines() - 1; LineIterator it2(root, at, Direction::Backward); while (it2.next(&line)) { if (at <= start)