From 7aeeb564472056b5595f8ad0cb37f716626b7559 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 18 May 2020 03:17:10 -0700 Subject: partially fix term resize --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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(_) => (), } } -- cgit v1.2.3