Fix editor opening the wrong file

This commit is contained in:
Leonard Steppy 2026-10-01 22:00:08 +02:00
parent 9a4841b9d9
commit 16cf4e8fda
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

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

View File

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

View File

@ -689,7 +689,7 @@ where
let editor_command = shell_words::split(&editor)
.map_err(|e| format!("failed to parse editor command: {e}"))?
.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<_>>();
ShellCommand::Editor(editor_command)