Skip to content

Commit cc285f5

Browse files
committed
Make width public
1 parent f50f661 commit cc285f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ impl<T: Write> ProgressBar<T> {
467467
}
468468

469469
/// Get terminal width, from configuration, terminal size, or default(80)
470-
fn width(&mut self) -> usize {
470+
pub fn width(&mut self) -> usize {
471471
if let Some(w) = self.width {
472472
w
473473
} else if let Some((Width(w), _)) = terminal_size() {

0 commit comments

Comments
 (0)