mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 03:15:33 +03:00
Revert "Resize is not necessary inside SIGCONT, handled by render()"
Fixes #1877
This reverts commit 85264a861a
.
This commit is contained in:
parent
838cfcc7cd
commit
6c276d7868
@ -310,6 +310,7 @@ impl Application {
|
|||||||
|
|
||||||
#[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();
|
||||||
@ -319,6 +320,8 @@ impl Application {
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user