on master help sign in
Fix crash on opening jumplist (#6672)
2f82bc1EsfoNL
helix-term/src/commands.rs+7
@@ -2547,6 +2547,13 @@ fn jumplist_picker(cx: &mut Context) {
2547 }
2547 }
2548 }
2548 }
2549
2549
2550+ for (view, _) in cx.editor.tree.views_mut() {
2551+ for doc_id in view.jumps.iter().map(|e| e.0).collect::<Vec<_>>().iter() {
2552+ let doc = doc_mut!(cx.editor, doc_id);
2553+ view.sync_changes(doc);
2554+ }
2555+ }
2556+
2550 let new_meta = |view: &View, doc_id: DocumentId, selection: Selection| {
2557 let new_meta = |view: &View, doc_id: DocumentId, selection: Selection| {
2551 let doc = &cx.editor.documents.get(&doc_id);
2558 let doc = &cx.editor.documents.get(&doc_id);
2552 let text = doc.map_or("".into(), |d| {
2559 let text = doc.map_or("".into(), |d| {