Update selection title after editing definition

This commit is contained in:
0xf8 2023-05-30 00:31:35 -04:00
parent 731bf3d43e
commit 543e98faaf
Signed by: 0xf8
GPG Key ID: 446580D758689584
1 changed files with 3 additions and 1 deletions

View File

@ -157,6 +157,7 @@ Host {host}
match action {
0 => { // Connect
// TODO: clear screen before connect
std::process::Command::new("ssh")
.arg("-F")
.arg(host.config.to_owned())
@ -177,7 +178,8 @@ Host {host}
2 => { // Edit definition
let edited_host = host.edit()?;
config.configs.remove(host);
config.configs.insert(edited_host);
config.configs.insert(edited_host.to_owned());
host.clone_from(&edited_host);
config.save();
}
3 => { // Delete