Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealLorenz committed Aug 29, 2023
1 parent 3e0aefe commit ffed075
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4848,15 +4848,15 @@ 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) {
cx.editor.new_file(Action::HorizontalSplit);
}

fn vsplit(cx: &mut Context) {
split_helper(&mut cx.editor, Action::VerticalSplit);
split_helper(cx.editor, Action::VerticalSplit);
}

fn vsplit_new(cx: &mut Context) {
Expand Down
4 changes: 2 additions & 2 deletions helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ffed075

Please sign in to comment.