gchp / iota

A terminal-based text editor written in Rust
MIT License
1.62k stars 80 forks source link

Calculate cursor postition when needed instead of maintaining it #135

Closed jncraton closed 6 years ago

jncraton commented 6 years ago

I've been reading through the overlay implementation, and this change felt cleaner to me. It simply saves having to adjust the cursor location in various places and calculates it on the fly.

gchp commented 6 years ago

Looks good to me - thanks!