fix: Correctly detect empty transactions

Fixes #1221
pull/1225/head
Blaž Hrastnik 3 years ago
parent 27ffc79c44
commit 119dee2980

@ -330,7 +330,7 @@ impl ChangeSet {
/// `true` when the set is empty. /// `true` when the set is empty.
#[inline] #[inline]
pub fn is_empty(&self) -> bool { pub fn is_empty(&self) -> bool {
self.changes.is_empty() self.changes.is_empty() || self.changes == [Operation::Retain(self.len)]
} }
/// Map a position through the changes. /// Map a position through the changes.

Loading…
Cancel
Save