launcher: fix bug that resets cursor on enter
This commit is contained in:
committed by
Kenny Levinsen
parent
f6cebdeba4
commit
2c8b27bb5a
@@ -384,7 +384,6 @@ impl<'a> Widget for Launcher<'a> {
|
|||||||
self.tx.send(Cmd::Exit).unwrap();
|
self.tx.send(Cmd::Exit).unwrap();
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
self.cursor = 0;
|
|
||||||
if self.matches.len() > self.offset {
|
if self.matches.len() > self.offset {
|
||||||
let d = &self.matches[self.offset];
|
let d = &self.matches[self.offset];
|
||||||
if let Some(exec) = &d.exec {
|
if let Some(exec) = &d.exec {
|
||||||
|
|||||||
Reference in New Issue
Block a user