Skip to content

Commit

Permalink
Fix incorrect terminal width on low terminal height (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanoz committed Aug 15, 2023
1 parent a627ece commit de25dfe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ All user visible changes to `cucumber` crate will be documented in this file. Th



## [0.21.0] · 2023-??-?? (unreleased)
[0.21.0]: /../../tree/v0.21.0

[Diff](/../../compare/v0.20.0...v0.21.0) | [Milestone](/../../milestone/25)

### Fixed

- Incorrect terminal width detection when its height is low. ([#298])

[#298]: /../../pull/298




## [0.20.0] · 2023-07-10
[0.20.0]: /../../tree/v0.20.0

Expand Down
2 changes: 1 addition & 1 deletion src/writer/out.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl Default for Styles {
retry: Style::new().magenta(),
header: Style::new().blue(),
bold: Style::new().bold(),
term_width: console::Term::stdout().size_checked().map(|(w, _h)| w),
term_width: console::Term::stdout().size_checked().map(|(_h, w)| w),
is_present: io::stdout().is_terminal() && console::colors_enabled(),
}
}
Expand Down

0 comments on commit de25dfe

Please sign in to comment.