fix: delete list event hint assert (#289)

This commit is contained in:
Leon Zhao 2024-03-02 16:25:57 +08:00 committed by GitHub
parent da782c7659
commit 1db510104e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -495,7 +495,8 @@ fn change_to_diff(
match &hint {
EventHint::InsertText { .. }
| EventHint::InsertList { .. }
| EventHint::DeleteText { .. } => {}
| EventHint::DeleteText { .. }
| EventHint::DeleteList(_) => {}
_ => {
assert_eq!(ops.len(), 1);
}