Skip to content

Commit

Permalink
Fixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaheba committed Jan 13, 2025
1 parent 75f32e4 commit b9137fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
@@ -198,13 +198,17 @@ impl BarState {
// Now actually get the drawable.
let mut drawable = self.draw_target.drawable(force_draw, now).unwrap();

let mut draw_state = drawable.state();

if let Some(width) = width {
if !matches!(self.state.status, Status::DoneHidden) {
self.style
.format_state(&self.state, &mut drawable.state().lines, width);
.format_state(&self.state, &mut draw_state.lines, width);
}
}

drop(draw_state);

drawable.draw()
}
}

0 comments on commit b9137fd

Please sign in to comment.