AMythicDev / minus

An asynchronous, runtime data feedable terminal paging library for Rust
https://crates.io/crates/minus/
Apache License 2.0
322 stars 23 forks source link

fix(init): Special static_output cases don't work #110

Closed michalsieron closed 1 year ago

michalsieron commented 1 year ago

Code setting RUNMODE was moved too far in 63328d02.

First, code checks if RUNMODE is static and only then it sets it to the selected mode. This way special cases when the stdout isn't a terminal or the output fits completely on the screen are not being hit.

AMythicDev commented 1 year ago

Thanks for the PR. Merging this.