AMythicDev / minus

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

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

Closed michalsieron closed 9 months ago

michalsieron commented 9 months 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 9 months ago

Thanks for the PR. Merging this.