Sync changes with view in undo/redo/earlier/later
This commit is contained in:
parent
53c2855643
commit
2709ce3332
1 changed files with 4 additions and 0 deletions
|
@ -870,6 +870,8 @@ impl Document {
|
|||
if success {
|
||||
// reset changeset to fix len
|
||||
self.changes = ChangeSet::new(self.text());
|
||||
// Sync with changes with the jumplist selections.
|
||||
view.sync_changes(self);
|
||||
}
|
||||
success
|
||||
}
|
||||
|
@ -909,6 +911,8 @@ impl Document {
|
|||
if success {
|
||||
// reset changeset to fix len
|
||||
self.changes = ChangeSet::new(self.text());
|
||||
// Sync with changes with the jumplist selections.
|
||||
view.sync_changes(self);
|
||||
}
|
||||
success
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue