mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Fix code after rebase
This commit is contained in:
parent
9dd9515a8d
commit
18381fcbc8
@ -364,7 +364,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.restore_term().unwrap();
|
self.restore_term().unwrap();
|
||||||
@ -373,8 +372,11 @@ 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 area = self.compositor.size();
|
let area = self
|
||||||
self.compositor.resize(area);
|
.terminal
|
||||||
|
.size()
|
||||||
|
.expect("Unable to determine terminal size");
|
||||||
|
self.terminal.resize(area);
|
||||||
self.render();
|
self.render();
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
|
Loading…
Reference in New Issue
Block a user