mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Resize is not necessary inside SIGCONT, handled by render()
This commit is contained in:
parent
7b3a3d562c
commit
85264a861a
@ -311,7 +311,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.compositor.save_cursor();
|
||||
@ -321,8 +320,6 @@ pub async fn handle_signals(&mut self, signal: i32) {
|
||||
signal::SIGCONT => {
|
||||
self.claim_term().await.unwrap();
|
||||
// redraw the terminal
|
||||
let Rect { width, height, .. } = self.compositor.size();
|
||||
self.compositor.resize(width, height);
|
||||
self.compositor.load_cursor();
|
||||
self.render();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user