gchp / iota

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

Traverse buffer by chars #91

Closed crespyl closed 9 years ago

crespyl commented 9 years ago

I've copied the core::str::Chars iterator code into an special iterator struct in the buffer module. This allows us to iterate forward/backward from any mark by chars instead of u8s.