Resize is not necessary inside SIGCONT, handled by render()

This commit is contained in:
Blaž Hrastnik 2022-03-22 00:13:17 +09:00
parent 7b3a3d562c
commit 85264a861a
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

View File

@ -311,7 +311,6 @@ pub async fn handle_signals(&mut self, _signal: ()) {}
#[cfg(not(windows))] #[cfg(not(windows))]
pub async fn handle_signals(&mut self, signal: i32) { pub async fn handle_signals(&mut self, signal: i32) {
use helix_view::graphics::Rect;
match signal { match signal {
signal::SIGTSTP => { signal::SIGTSTP => {
self.compositor.save_cursor(); self.compositor.save_cursor();
@ -321,8 +320,6 @@ pub async fn handle_signals(&mut self, signal: i32) {
signal::SIGCONT => { signal::SIGCONT => {
self.claim_term().await.unwrap(); self.claim_term().await.unwrap();
// redraw the terminal // redraw the terminal
let Rect { width, height, .. } = self.compositor.size();
self.compositor.resize(width, height);
self.compositor.load_cursor(); self.compositor.load_cursor();
self.render(); self.render();
} }