Fix off by one error.

This commit is contained in:
2026-08-30 14:36:36 +01:00
parent 7a18aa0db2
commit 44e58b3041
+1 -1
View File
@@ -37,7 +37,7 @@ void Buffer::load(BEd &, vase::Shard *text) {
void Buffer::append(BEd &ctx, vase::Shard *text, uint64_t line) {
ctx.prev.buffername = name;
ctx.prev.start = line;
ctx.prev.end = line + text->lines;
ctx.prev.end = line + text->lines + 1;
root = vase::insert(&ctx.append, root, text, line);
ctx.marks.insert(name, ctx.prev.start, ctx.prev.end);
if (parser)