aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-03-29 13:08:19 +0000
committerBlaž Hrastnik2022-03-29 13:08:19 +0000
commit6c276d786858891c2d49570ee2ad4d8790270309 (patch)
tree308f70726490697d04d5ef23e7d7c905f1dc120b /helix-term/src/application.rs
parent838cfcc7cd7958a5e75a94041ce2d6b5495eab5a (diff)
Revert "Resize is not necessary inside SIGCONT, handled by render()"
Fixes #1877 This reverts commit 85264a861aeda7a002dda548403258620e914b57.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 6756068a..09b1ff61 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -310,6 +310,7 @@ impl Application {
#[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();
@@ -319,6 +320,8 @@ impl Application {
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();
}