mirror of https://github.com/helix-editor/helix
Fix `goto_file` on Windows (#13770)
parent
3c6c221d45
commit
684e108fd0
|
@ -76,8 +76,7 @@ fn open_external_url_callback(
|
||||||
let commands = open::commands(url.as_str());
|
let commands = open::commands(url.as_str());
|
||||||
async {
|
async {
|
||||||
for cmd in commands {
|
for cmd in commands {
|
||||||
let mut command = tokio::process::Command::new(cmd.get_program());
|
let mut command: tokio::process::Command = cmd.into();
|
||||||
command.args(cmd.get_args());
|
|
||||||
if command.output().await.is_ok() {
|
if command.output().await.is_ok() {
|
||||||
return Ok(job::Callback::Editor(Box::new(|_| {})));
|
return Ok(job::Callback::Editor(Box::new(|_| {})));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue