ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: fix rebase error

This commit is contained in:
Benjamin Saunders 2022-11-06 18:17:13 -08:00
parent 210b54afd7
commit 46fe0791e8

View file

@ -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);