on master help sign in
Revert "Resize is not necessary inside SIGCONT, handled by render()"
6c276d7Blaž Hrastnik
helix-term/src/application.rs+3
@@ -310,6 +310,7 @@ impl Application {
310
310
311 #[cfg(not(windows))]
311 #[cfg(not(windows))]
312 pub async fn handle_signals(&mut self, signal: i32) {
312 pub async fn handle_signals(&mut self, signal: i32) {
313+ use helix_view::graphics::Rect;
313 match signal {
314 match signal {
314 signal::SIGTSTP => {
315 signal::SIGTSTP => {
315 self.compositor.save_cursor();
316 self.compositor.save_cursor();
@@ -319,6 +320,8 @@ impl Application {
319 signal::SIGCONT => {
320 signal::SIGCONT => {
320 self.claim_term().await.unwrap();
321 self.claim_term().await.unwrap();
321 // redraw the terminal
322 // redraw the terminal
323+ let Rect { width, height, .. } = self.compositor.size();
324+ self.compositor.resize(width, height);
322 self.compositor.load_cursor();
325 self.compositor.load_cursor();
323 self.render();
326 self.render();
324 }
327 }