Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/lib.rs')
-rw-r--r--helix-term/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-term/src/lib.rs b/helix-term/src/lib.rs
index 75b67479..cf4fbd9f 100644
--- a/helix-term/src/lib.rs
+++ b/helix-term/src/lib.rs
@@ -63,7 +63,7 @@ fn filter_picker_entry(entry: &DirEntry, root: &Path, dedup_symlinks: bool) -> b
.path()
.canonicalize()
.ok()
- .is_some_and(|path| !path.starts_with(root));
+ .map_or(false, |path| !path.starts_with(root));
}
true
@@ -76,7 +76,8 @@ fn open_external_url_callback(
let commands = open::commands(url.as_str());
async {
for cmd in commands {
- let mut command: tokio::process::Command = cmd.into();
+ let mut command = tokio::process::Command::new(cmd.get_program());
+ command.args(cmd.get_args());
if command.output().await.is_ok() {
return Ok(job::Callback::Editor(Box::new(|_| {})));
}