Skip to content

Commit

Permalink
cli: fix rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Nov 7, 2022
1 parent 210b54a commit 46fe079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ impl Progress {
return Ok(());
}
if self.guard.is_none() {
let guard = self.ui.output_guard(crossterm::cursor::Show.to_string());
let guard = ui.output_guard(crossterm::cursor::Show.to_string());
let guard = CleanupGuard::new(move || {
drop(guard);
});
_ = write!(self.ui, "{}", crossterm::cursor::Hide);
_ = write!(ui, "{}", crossterm::cursor::Hide);
self.guard = Some(guard);
}
self.next_print = now.min(self.next_print + Duration::from_secs(1) / UPDATE_HZ);
Expand Down

0 comments on commit 46fe079

Please sign in to comment.