Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 10b7b166..604d6924 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3762,7 +3762,8 @@ fn normal_mode(cx: &mut Context) {
}
// Store a jump on the jumplist.
-fn push_jump(view: &mut View, doc: &Document) {
+fn push_jump(view: &mut View, doc: &mut Document) {
+ doc.append_changes_to_history(view);
let jump = (doc.id(), doc.selection(view.id).clone());
view.jumps.push(jump);
}