Allow grouping local transactions even if remote peer edits in between
This commit is contained in:
parent
79f960b69e
commit
0fc7308932
4 changed files with 6 additions and 20 deletions
|
@ -564,7 +564,9 @@ fn test_history() {
|
|||
assert_eq!(buffer.text(), "12cde6");
|
||||
|
||||
// Redo stack gets cleared after performing an edit.
|
||||
buffer.start_transaction_at(now);
|
||||
buffer.edit([(0..0, "X")]);
|
||||
buffer.end_transaction_at(now);
|
||||
assert_eq!(buffer.text(), "X12cde6");
|
||||
buffer.redo();
|
||||
assert_eq!(buffer.text(), "X12cde6");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue