aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorMichael Davis2022-11-27 18:48:14 +0000
committerBlaž Hrastnik2022-11-29 16:15:20 +0000
commit2709ce33324cf6d4612c61609f336cf5937b6cac (patch)
treede83afbe179e4fc86321136d09b0b980ce89ad2e /helix-view
parent53c28556436ffcf8ad5a68c40b53d9aa11669510 (diff)
Sync changes with view in undo/redo/earlier/later
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 4b264b13..17503553 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -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
}