From 05e0e6bb8299ae6bc25cb52f81a816adb0c560e5 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Tue, 10 Mar 2020 21:42:12 -0400 Subject: [PATCH] Forgot to set size field upon detecting a resize... --- src/canvas.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/canvas.rs b/src/canvas.rs index a5703f3d..eb534adb 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -147,6 +147,8 @@ impl Painter { self.width = current_width; } else if self.height != current_height || self.width != current_width { app_state.is_resized = true; + self.height = current_height; + self.width = current_width; } terminal.autoresize()?;