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