The last newline should not be included.
This is done in parts of the code, but not all of it.
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++;
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++;