fix: add missing flush

This commit is contained in:
🪞👃🪞 2024-09-15 17:36:20 +03:00
parent 530cba2bc8
commit 56db9cfce1
2 changed files with 3 additions and 2 deletions

View file

@ -106,7 +106,7 @@ impl Content for Demo<Tui> {
}
impl Handle<Tui> for Demo<Tui> {
fn handle (&mut self, from: &Tui) -> Perhaps<bool> {
fn handle (&mut self, from: &TuiInput) -> Perhaps<bool> {
match from.event() {
key!(KeyCode::PageUp) => {
self.index = (self.index + 1) % self.items.len();