launcher: set cursor position in self.leave

This commit is contained in:
Hilmar Gústafsson
2020-07-22 01:44:06 +02:00
committed by Kenny Levinsen
parent 2c8b27bb5a
commit 91fdfcd2b6
+1
View File
@@ -265,6 +265,7 @@ impl<'a> Widget for Launcher<'a> {
fn enter(&mut self) {} fn enter(&mut self) {}
fn leave(&mut self) { fn leave(&mut self) {
self.input = "".to_string(); self.input = "".to_string();
self.cursor = 0;
self.offset = 0; self.offset = 0;
self.result = None; self.result = None;
self.dirty = true; self.dirty = true;