mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
parent
27ffc79c44
commit
119dee2980
@ -330,7 +330,7 @@ pub fn apply(&self, text: &mut Rope) -> bool {
|
||||
/// `true` when the set is empty.
|
||||
#[inline]
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user