jdx / demand

prompt library for rust
https://docs.rs/demand
MIT License
52 stars 3 forks source link

🚧 fix: inputs get messed up when a line overflows #36

Open roele opened 7 months ago

roele commented 7 months ago

overflowing lines need to be calculated seperately of height so we can move the cursor accordingly before clearing. for selects this is much more involved since capacity of options also need to be calculated based on title,description and help which all might be overflowing.

jdx commented 7 months ago

this looks like the right approach to me—definitely tough to review this kind of code though