launcher: Clear input buf when launching
This commit is contained in:
@@ -322,6 +322,7 @@ impl Widget for Launcher {
|
||||
if lexed.len() > 0 {
|
||||
let _ =
|
||||
Command::new(lexed[0].clone()).args(&lexed[1..]).spawn();
|
||||
self.input = "".to_string();
|
||||
self.tx.send(Cmd::Exit).unwrap();
|
||||
}
|
||||
}
|
||||
@@ -333,6 +334,7 @@ impl Widget for Launcher {
|
||||
let _ = Command::new(lexed[0].clone())
|
||||
.args(&lexed[1..])
|
||||
.spawn();
|
||||
self.input = "".to_string();
|
||||
self.tx.send(Cmd::Exit).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user