fix: this time is the good one

This commit is contained in:
cschen 2024-08-14 16:31:28 +02:00
parent 6c30699acc
commit d22446ee10

View file

@ -140,7 +140,7 @@ impl ControllerWorker<TextChange> for BufferWorker {
// x.0.start should always be after lastver!
// this step_ver will be the version after we apply the operation
// we give it to the controller so that he knows where it's at.
let step_ver = oplog.version_union(&[lv.start], &last_ver);
let step_ver = oplog.version_union(&[lv.end-1], &last_ver);
branch.merge(&oplog, &step_ver);
let new_local_v = branch.local_version();