Update selection title after editing definition
This commit is contained in:
parent
731bf3d43e
commit
543e98faaf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user