gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.26k stars 243 forks source link

Documentation issue about textarea set_cursor #753

Closed massimo79m closed 1 year ago

massimo79m commented 1 year ago

the documentation says : This method panics if cursor is not the beginning of a character in the content string. it should report "bytes" in place of "characters".

massimo79m commented 1 year ago

Please remove the bug label. thank you

gyscos commented 1 year ago

Thanks for the report!

The doc now states:

    /// Moves the cursor to the given byte position.
    ///
    /// # Panics
    ///
    /// This method panics if `cursor` is not the starting byte of a character in
    /// the content string.