launcher: Clear input buf when launching

This commit is contained in:
Kenny Levinsen
2019-09-17 17:06:42 +02:00
parent 4ca4fa307a
commit 4e9f0e566f
+2
View File
@@ -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();
}
}