We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2651b35 commit dea6d3bCopy full SHA for dea6d3b
helix-view/src/editor.rs
@@ -1241,10 +1241,13 @@ impl Editor {
1241
// within view
1242
if prev_id != view_id {
1243
self.mode = Mode::Normal;
1244
- let view = view_mut!(self, view_id);
1245
- let doc = doc_mut!(self, &view.doc);
1246
- view.sync_changes(doc);
1247
self.ensure_cursor_in_view(view_id);
+
+ // Update jumplist selections with new document changes.
+ for (view, _focused) in self.tree.views_mut() {
1248
+ let doc = doc_mut!(self, &view.doc);
1249
+ view.sync_changes(doc);
1250
+ }
1251
}
1252
1253
0 commit comments