From 4e9f0e566f9061c7e45988d0282d96d7429e01d7 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 17 Sep 2019 17:06:42 +0200 Subject: [PATCH] launcher: Clear input buf when launching --- src/widgets/launcher.rs | 2 ++ 1 file changed, 2 insertions(+) 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(); } }