aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index f161007..2d51757 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -367,8 +367,11 @@ impl Bk<'_> {
match event::read()? {
Event::Key(e) => view.run(self, e.code),
+ Event::Resize(cols, rows) => {
+ self.cols = cols;
+ self.rows = rows as usize;
+ }
// TODO
- Event::Resize(_, _) => (),
Event::Mouse(_) => (),
}
}