aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorRobin2022-07-22 01:23:00 +0000
committerGitHub2022-07-22 01:23:00 +0000
commit19b7864062462e56545cfcca8402659573524f60 (patch)
tree27f799efac383ad2e20d845b2dce1825aa34c0b2 /helix-term
parent2f53644c6d7d70b680a5d734c8732e5f367aacf3 (diff)
keep jump/file history when using :split (#3031)
* keep jump/file history when using :split * move history cloning into the switch function Co-authored-by: Robin <robinvandijk@klippa.com>
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 12d988d0..6fdc215a 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -4083,13 +4083,11 @@ fn split(cx: &mut Context, action: Action) {
let (view, doc) = current!(cx.editor);
let id = doc.id();
let selection = doc.selection(view.id).clone();
- let offset = view.offset;
cx.editor.switch(id, action);
// match the selection in the previous view
let (view, doc) = current!(cx.editor);
- view.offset = offset;
doc.set_selection(view.id, selection);
}