refactor + not sure whats up with the double padding

This commit is contained in:
🪞👃🪞 2024-09-10 14:39:53 +03:00
parent 39407c9760
commit c51d1cf643
10 changed files with 388 additions and 393 deletions

View file

@ -13,7 +13,15 @@ impl HelpModal {
Self { cursor: 0, search: None, exited: false }
}
}
exit!(HelpModal);
impl Exit for HelpModal {
fn exited (&self) -> bool {
self.exited
}
fn exit (&mut self) {
self.exited = true
}
}
render!(HelpModal |self, buf, area|{
make_dim(buf);