Skip to content

Commit

Permalink
Merge pull request #63 from samoylovfp/patch-1
Browse files Browse the repository at this point in the history
Restore terminal on exit
  • Loading branch information
bvaisvil committed Aug 16, 2020
2 parents c90861a + 1a93aef commit aac86de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Expand Up @@ -120,7 +120,8 @@ fn start_zenith(
let lock = match util::Lockfile::new(main_pid, &lock_path).await {
Some(f) => f,
None => {
print!("{:} exists and history recording is on. Is another copy of zenith open? If not remove the path and open zenith again.", lock_path.display());
restore_terminal();
println!("{:} exists and history recording is on. Is another copy of zenith open? If not remove the path and open zenith again.", lock_path.display());
exit(1);
}
};
Expand Down

0 comments on commit aac86de

Please sign in to comment.