Test undo/redo at editor layer, including selection restoration
This commit is contained in:
parent
44cd0be068
commit
cdbcbdfe6d
5 changed files with 325 additions and 180 deletions
|
@ -511,6 +511,10 @@ impl Buffer {
|
|||
self.deferred_ops.len()
|
||||
}
|
||||
|
||||
pub fn transaction_group_interval(&self) -> Duration {
|
||||
self.history.group_interval
|
||||
}
|
||||
|
||||
pub fn edit<R, I, S, T>(&mut self, ranges: R, new_text: T) -> EditOperation
|
||||
where
|
||||
R: IntoIterator<IntoIter = I>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue