diff options
author | James Campos <james.r.campos@gmail.com> | 2020-05-18 03:17:10 -0700 |
---|---|---|
committer | James Campos <james.r.campos@gmail.com> | 2020-05-18 03:17:10 -0700 |
commit | 7aeeb564472056b5595f8ad0cb37f716626b7559 (patch) | |
tree | c4c8a681b296908677c683d547ad01a31aab3438 /src | |
parent | d6c5913c3ea1c71966119f2bbf01f69b2c301a8f (diff) | |
download | bk-7aeeb564472056b5595f8ad0cb37f716626b7559.tar.gz |
partially fix term resize
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 5 |
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(_) => (), } } |