launcher: fix bug that resets cursor on enter

This commit is contained in:
Hilmar Gústafsson
2020-07-22 01:44:06 +02:00
committed by Kenny Levinsen
parent f6cebdeba4
commit 2c8b27bb5a
-1
View File
@@ -384,7 +384,6 @@ impl<'a> Widget for Launcher<'a> {
self.tx.send(Cmd::Exit).unwrap();
}
_ => {
self.cursor = 0;
if self.matches.len() > self.offset {
let d = &self.matches[self.offset];
if let Some(exec) = &d.exec {