mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
Sync changes with view in undo/redo/earlier/later
This commit is contained in:
parent
53c2855643
commit
2709ce3332
@ -870,6 +870,8 @@ fn undo_redo_impl(&mut self, view: &mut View, undo: bool) -> bool {
|
||||
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 @@ fn earlier_later_impl(&mut self, view: &mut View, uk: UndoKind, earlier: bool) -
|
||||
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 New Issue
Block a user