Skip to content

Commit

Permalink
Make width public
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Mar 16, 2018
1 parent 2df7598 commit 833bc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ impl<T: Write> ProgressBar<T> {
}

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

0 comments on commit 833bc0b

Please sign in to comment.