summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 33e380a0..08dd4d00 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -90,7 +90,11 @@ impl Editor {
use crate::tree::Layout;
match action {
Action::Replace => {
+ let view = self.view();
+ let jump = (view.doc, self.documents[view.doc].selection().clone());
+
let view = self.view_mut();
+ view.jumps.push(jump);
view.doc = id;
view.first_line = 0;
return Ok(id);