Unnamed repository; edit this file 'description' to name the repository.
Fix `goto_file` on Windows (#13770)
yuri 8 months ago
parent 3c6c221 · commit 684e108
-rw-r--r--helix-term/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/lib.rs b/helix-term/src/lib.rs
index a371dd1c..75b67479 100644
--- a/helix-term/src/lib.rs
+++ b/helix-term/src/lib.rs
@@ -76,8 +76,7 @@ fn open_external_url_callback(
let commands = open::commands(url.as_str());
async {
for cmd in commands {
- let mut command = tokio::process::Command::new(cmd.get_program());
- command.args(cmd.get_args());
+ let mut command: tokio::process::Command = cmd.into();
if command.output().await.is_ok() {
return Ok(job::Callback::Editor(Box::new(|_| {})));
}