Skip to content

Commit 7ac4a0d

Browse files
alexisfontainedjc
authored andcommitted
Expose the current tab width
1 parent 95088ff commit 7ac4a0d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/progress_bar.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,11 @@ impl ProgressBar {
628628
self.state().state.elapsed()
629629
}
630630

631+
/// Returns the current tab width
632+
pub fn tab_width(&self) -> usize {
633+
self.state().tab_width
634+
}
635+
631636
/// Index in the `MultiState`
632637
pub(crate) fn index(&self) -> Option<usize> {
633638
self.state().draw_target.remote().map(|(_, idx)| idx)

0 commit comments

Comments
 (0)