rschmitt / heatseeker

A high-performance Selecta clone, written in Rust.
MIT License
214 stars 10 forks source link

Truncate excessively long choices #1

Closed rschmitt closed 9 years ago

rschmitt commented 9 years ago

The following test case works as far as Unicode goes (outside of Windows), but the choices wrap around the screen several times and break the UI (tested on Linux, not yet reproduced on OS X):

python3 -c '[print("☃foo" * 20) for i in range(30)]' | hs