diff --git a/src/widgets/launcher.rs b/src/widgets/launcher.rs index 65bfc58..93c167f 100644 --- a/src/widgets/launcher.rs +++ b/src/widgets/launcher.rs @@ -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(); } }