Skip to content

Commit

Permalink
fix: don't restore the terminal two times (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsheep authored Mar 12, 2024
1 parent 9eb5291 commit 3e57b59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e57b59

Please sign in to comment.