Compare commits

...

2 Commits

Author SHA1 Message Date
bc968a2e6d Merge pull request 'Fix editor opening the wrong file' (#48) from fix-editor into master
Reviewed-on: #48
2026-10-01 22:01:19 +02:00
Leonard Steppy
16cf4e8fda Fix editor opening the wrong file 2026-10-01 22:00:08 +02:00
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -186,7 +186,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]] [[package]]
name = "multi-ssh" name = "multi-ssh"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"clap", "clap",
"homedir", "homedir",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "multi-ssh" name = "multi-ssh"
version = "0.2.0" version = "0.2.1"
edition = "2024" edition = "2024"
[dependencies] [dependencies]

View File

@ -689,7 +689,7 @@ where
let editor_command = shell_words::split(&editor) let editor_command = shell_words::split(&editor)
.map_err(|e| format!("failed to parse editor command: {e}"))? .map_err(|e| format!("failed to parse editor command: {e}"))?
.into_iter() .into_iter()
.map(|part| part.replace_with_os_str(FILE_PLACEHOLDER, &file_path)) .map(|part| part.replace_with_os_str(FILE_PLACEHOLDER, &downloaded_file_path))
.collect::<Vec<_>>(); .collect::<Vec<_>>();
ShellCommand::Editor(editor_command) ShellCommand::Editor(editor_command)