on master help sign in
Sync changes with view in undo/redo/earlier/later
2709ce3Michael Davis
helix-view/src/document.rs+4
@@ -870,6 +870,8 @@ impl Document {
870 if success {
870 if success {
871 // reset changeset to fix len
871 // reset changeset to fix len
872 self.changes = ChangeSet::new(self.text());
872 self.changes = ChangeSet::new(self.text());
873+ // Sync with changes with the jumplist selections.
874+ view.sync_changes(self);
873 }
875 }
874 success
876 success
875 }
877 }
@@ -909,6 +911,8 @@ impl Document {
909 if success {
911 if success {
910 // reset changeset to fix len
912 // reset changeset to fix len
911 self.changes = ChangeSet::new(self.text());
913 self.changes = ChangeSet::new(self.text());
914+ // Sync with changes with the jumplist selections.
915+ view.sync_changes(self);
912 }
916 }
913 success
917 success
914 }
918 }