From 3e57b59473dd0b223c11f78b71a2b92add78dd63 Mon Sep 17 00:00:00 2001 From: Nathanael Demacon Date: Tue, 12 Mar 2024 20:08:47 +0100 Subject: [PATCH] fix: don't restore the terminal two times (#81) --- src/ui.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index d81745e..3ee6e63 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -181,12 +181,11 @@ impl App { host.run_command_template(&self.config.command_template)?; + setup_terminal(terminal).expect("Failed to setup terminal"); + if self.config.exit_after_ssh { return Ok(()); } - - setup_terminal(terminal).expect("Failed to setup terminal"); - // terminal.borrow_mut().clear()?; } _ => { self.search.handle_event(&ev);