on master help sign in
Revert "Resize is not necessary inside SIGCONT, handled by render()"

Fixes #1877 This reverts commit 85264a861aeda7a002dda548403258620e914b57.

commit6c276d786858891c2d49570ee2ad4d8790270309 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 29 Mar 2022, 22:08 (5 years ago) parent838cfcc
1 file changed+3
helix-term/src/application.rs+3
helix-term/src/application.rs+3
@@ -310,6 +310,7 @@ impl Application {
310310
311311 #[cfg(not(windows))]
312312 pub async fn handle_signals(&mut self, signal: i32) {
313+ use helix_view::graphics::Rect;
313314 match signal {
314315 signal::SIGTSTP => {
315316 self.compositor.save_cursor();
@@ -319,6 +320,8 @@ impl Application {
319320 signal::SIGCONT => {
320321 self.claim_term().await.unwrap();
321322 // redraw the terminal
323+ let Rect { width, height, .. } = self.compositor.size();
324+ self.compositor.resize(width, height);
322325 self.compositor.load_cursor();
323326 self.render();
324327 }