mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-07 13:00:08 +00:00
cli: fix rebase error
This commit is contained in:
parent
210b54afd7
commit
46fe0791e8
1 changed files with 2 additions and 2 deletions
|
@ -44,11 +44,11 @@ impl Progress {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
if self.guard.is_none() {
|
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 || {
|
let guard = CleanupGuard::new(move || {
|
||||||
drop(guard);
|
drop(guard);
|
||||||
});
|
});
|
||||||
_ = write!(self.ui, "{}", crossterm::cursor::Hide);
|
_ = write!(ui, "{}", crossterm::cursor::Hide);
|
||||||
self.guard = Some(guard);
|
self.guard = Some(guard);
|
||||||
}
|
}
|
||||||
self.next_print = now.min(self.next_print + Duration::from_secs(1) / UPDATE_HZ);
|
self.next_print = now.min(self.next_print + Duration::from_secs(1) / UPDATE_HZ);
|
||||||
|
|
Loading…
Reference in a new issue