diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index bbe724219690..d4c022dd3aff 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4848,7 +4848,7 @@ fn split_helper(editor: &mut Editor, action: Action) { } fn hsplit(cx: &mut Context) { - split_helper(&mut cx.editor, Action::HorizontalSplit); + split_helper(cx.editor, Action::HorizontalSplit); } fn hsplit_new(cx: &mut Context) { @@ -4856,7 +4856,7 @@ fn hsplit_new(cx: &mut Context) { } fn vsplit(cx: &mut Context) { - split_helper(&mut cx.editor, Action::VerticalSplit); + split_helper(cx.editor, Action::VerticalSplit); } fn vsplit_new(cx: &mut Context) { diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index a81dc020bab7..4f15932fe556 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1539,7 +1539,7 @@ fn vsplit( } if args.is_empty() { - split_helper(&mut cx.editor, Action::VerticalSplit); + split_helper(cx.editor, Action::VerticalSplit); } else { for arg in args { cx.editor @@ -1560,7 +1560,7 @@ fn hsplit( } if args.is_empty() { - split_helper(&mut cx.editor, Action::HorizontalSplit); + split_helper(cx.editor, Action::HorizontalSplit); } else { for arg in args { cx.editor