Fix off by one error.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user