aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2020-05-18 03:17:10 -0700
committerJames Campos <james.r.campos@gmail.com>2020-05-18 03:17:10 -0700
commit7aeeb564472056b5595f8ad0cb37f716626b7559 (patch)
treec4c8a681b296908677c683d547ad01a31aab3438
parentd6c5913c3ea1c71966119f2bbf01f69b2c301a8f (diff)
downloadbk-7aeeb564472056b5595f8ad0cb37f716626b7559.tar.gz
partially fix term resize
-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(_) => (),
}
}