From aaedd47d5287885429dfc87309be1154e24d32de Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 3 Oct 2020 16:39:16 -0500 Subject: [PATCH] Bugfix: consistently handle last newline location in fss basic list read. The last newline should not be included. This is done in parts of the code, but not all of it. --- level_1/fl_fss/c/fss_basic_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_1/fl_fss/c/fss_basic_list.c b/level_1/fl_fss/c/fss_basic_list.c index c9a3824..37af59a 100644 --- a/level_1/fl_fss/c/fss_basic_list.c +++ b/level_1/fl_fss/c/fss_basic_list.c @@ -287,7 +287,7 @@ extern "C" { if (found_newline) { fl_macro_fss_apply_delimit_placeholders((*buffer), delimits); - found->array[found->used].stop = last_newline; + found->array[found->used].stop = last_newline - 1; range->start = last_newline + 1; found->used++; @@ -355,7 +355,7 @@ extern "C" { if (found_newline) { fl_macro_fss_apply_delimit_placeholders((*buffer), delimits); - found->array[found->used].stop = last_newline; + found->array[found->used].stop = last_newline - 1; range->start = last_newline + 1; found->used++; -- 1.8.3.1