diff options
author | Robin | 2022-07-22 01:23:00 +0000 |
---|---|---|
committer | GitHub | 2022-07-22 01:23:00 +0000 |
commit | 19b7864062462e56545cfcca8402659573524f60 (patch) | |
tree | 27f799efac383ad2e20d845b2dce1825aa34c0b2 /helix-term/src | |
parent | 2f53644c6d7d70b680a5d734c8732e5f367aacf3 (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/src')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
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); } |