Skip to content

Commit

Permalink
remove error message when using splits with no arg
Browse files Browse the repository at this point in the history
  • Loading branch information
devins2518 committed Aug 23, 2021
1 parent 07c5152 commit 52a4d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ mod cmd {

cx.editor.switch(id, Action::VerticalSplit);

let path = args.get(0).context("wrong argument count")?;
let path = args.get(0).context("")?;

let _ = cx.editor.open(path.into(), Action::Replace)?;
Ok(())
Expand All @@ -1926,7 +1926,7 @@ mod cmd {

cx.editor.switch(id, Action::HorizontalSplit);

let path = args.get(0).context("wrong argument count")?;
let path = args.get(0).context("")?;

let _ = cx.editor.open(path.into(), Action::Replace)?;
Ok(())
Expand Down

0 comments on commit 52a4d46

Please sign in to comment.