From 18381fcbc8786950d3b86b551e5f50f14656ba68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 30 Mar 2022 10:49:39 +0900 Subject: [PATCH] Fix code after rebase --- helix-term/src/application.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index cad94e979..5913f9711 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -364,7 +364,6 @@ impl Application { #[cfg(not(windows))] pub async fn handle_signals(&mut self, signal: i32) { - use helix_view::graphics::Rect; match signal { signal::SIGTSTP => { self.restore_term().unwrap(); @@ -373,8 +372,11 @@ impl Application { signal::SIGCONT => { self.claim_term().await.unwrap(); // redraw the terminal - let area = self.compositor.size(); - self.compositor.resize(area); + let area = self + .terminal + .size() + .expect("Unable to determine terminal size"); + self.terminal.resize(area); self.render(); } _ => unreachable!(),