fix move-range tests of moved-moved items

This commit is contained in:
Kevin Jahns
2022-06-16 20:23:34 +02:00
parent b63d22e7db
commit 44499cb9fe
3 changed files with 22 additions and 5 deletions

View File

@@ -164,6 +164,7 @@ export class ContentMove {
if (adaptPriority || nextPrio < this.priority || (currMoved != null && nextPrio === this.priority && (currMoved.id.client < item.id.client || (currMoved.id.client === item.id.client && currMoved.id.clock < item.id.clock)))) {
if (currMoved !== null) {
this.overrides.add(currMoved)
transaction._mergeStructs.push(start)
}
maxPriority = math.max(maxPriority, nextPrio)
// was already moved