aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 17669924..95310c1f 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -2547,6 +2547,13 @@ fn jumplist_picker(cx: &mut Context) {
}
}
+ for (view, _) in cx.editor.tree.views_mut() {
+ for doc_id in view.jumps.iter().map(|e| e.0).collect::<Vec<_>>().iter() {
+ let doc = doc_mut!(cx.editor, doc_id);
+ view.sync_changes(doc);
+ }
+ }
+
let new_meta = |view: &View, doc_id: DocumentId, selection: Selection| {
let doc = &cx.editor.documents.get(&doc_id);
let text = doc.map_or("".into(), |d| {