Skip to content

Commit

Permalink
Open files with spaces in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 committed Dec 4, 2021
1 parent 70c6253 commit 189eb63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,8 @@ mod cmd {
args: &[&str],
_event: PromptEvent,
) -> anyhow::Result<()> {
let path = args.get(0).context("wrong argument count")?;
ensure!(!args.is_empty(), "wrong argument count");
let path = args.join(" ");
let _ = cx.editor.open(path.into(), Action::Replace)?;
Ok(())
}
Expand Down

0 comments on commit 189eb63

Please sign in to comment.