From 7683a20e749da0395fa3c2c8a39ad38684cc2c7f Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 4 Sep 2024 18:47:23 -0500 Subject: [PATCH] Bugfix: The delimited FSS lists are not properly setting the stop point. This uses existing variables and shuffles the data around rather than defining a new variable. --- level_1/fl_fss/c/private-fss-list.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/level_1/fl_fss/c/private-fss-list.c b/level_1/fl_fss/c/private-fss-list.c index 6cf1478..7b89330 100644 --- a/level_1/fl_fss/c/private-fss-list.c +++ b/level_1/fl_fss/c/private-fss-list.c @@ -191,8 +191,20 @@ extern "C" { } // while range->start = found->stop + 1; + found->start = stop; + found->stop = stop; + + state->status = f_utf_buffer_decrement(buffer, found, 1); + + if (F_status_is_error(state->status)) { + --range->start; + delimits->used = delimits_used; + + return; + } + + found->stop = found->start; found->start = start; - found->stop = stop + macro_f_utf_byte_width(buffer.string[stop]) - 1; state->status = F_fss_found_object; } else { -- 1.8.3.1