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