Fix code after rebase

This commit is contained in:
Blaž Hrastnik 2022-03-30 10:49:39 +09:00
parent 9dd9515a8d
commit 18381fcbc8
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

View File

@ -364,7 +364,6 @@ pub async fn handle_signals(&mut self, _signal: ()) {}
#[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 @@ pub async fn handle_signals(&mut self, signal: i32) {
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!(),