diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-01-20 19:25:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-20 19:25:35 +0100 |
| commit | decc38232b7318190f7ce20f9eccff3814bcc68b (patch) | |
| tree | 39ac308a6cf8befd5ac07037ad88bae9935f4d7e /src/screen.rs | |
| parent | fix(compatibility): fix grid glitch edge-case when resizing (#149) (diff) | |
| download | sl0ppij-decc38232b7318190f7ce20f9eccff3814bcc68b.tar.gz sl0ppij-decc38232b7318190f7ce20f9eccff3814bcc68b.tar.xz sl0ppij-decc38232b7318190f7ce20f9eccff3814bcc68b.zip | |
fix(main): do not hang on exit (#150)
Diffstat (limited to 'src/screen.rs')
| -rw-r--r-- | src/screen.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/screen.rs b/src/screen.rs index 5e4d1ae9..7fb19b6c 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -146,7 +146,9 @@ impl Screen { .unwrap(); if self.tabs.is_empty() { self.active_tab_index = None; - self.render(); + self.send_app_instructions + .send(AppInstruction::Exit) + .unwrap(); } } pub fn render(&mut self) { @@ -156,10 +158,6 @@ impl Screen { } else { self.close_tab(); } - } else { - self.send_app_instructions - .send(AppInstruction::Exit) - .unwrap(); }; } |
