fix: list_op delete merge error

This commit is contained in:
Zixuan Chen 2022-10-22 19:08:36 +08:00
parent a662650cab
commit 24773ac217

View file

@ -23,7 +23,7 @@ impl Mergable for ListOp {
_ => false,
},
ListOp::Delete { pos, len } => match _other {
ListOp::Delete { pos: other_pos, .. } => pos + len == *other_pos,
ListOp::Delete { pos: other_pos, .. } => *pos == *other_pos,
_ => false,
},
}