ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
58 stars 8 forks source link

Use Unicode column width when calculating terminal cursor offset #151

Closed simnalamburt closed 1 month ago

simnalamburt commented 1 month ago

Respect unicode width

Reference
ulyssa commented 1 month ago

Thank you for fixing this, this is great! :sparkles: I realized while looking at how you did it that I forgot to also point you at the non-wrapping method too. I've updated it to do the same thing as the other two.