You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use rui::*;fnmain(){state(|| "Hello".to_owned(), |handle, _| text_editor(handle)).run()}
on my mac, if you take the cursor to the end of the text and press up/down arrows, app panics. This is because of this:
// src/views/text_editor.rs:64 let p = self.glyph_rects[self.cursor].center();
which fails to account for when self.cursor == self.glyph_rects.len().
also the find_line() function is acting a little weird; in this example, it thinks that the line is 1 and not 0 (thus, when I press up and if the above error is fixed, it thinks the line is 1 and thus still tries to jump a line up)
The text was updated successfully, but these errors were encountered:
When running the following code:
on my mac, if you take the cursor to the end of the text and press up/down arrows, app panics. This is because of this:
which fails to account for when
self.cursor == self.glyph_rects.len()
.also the
find_line()
function is acting a little weird; in this example, it thinks that the line is 1 and not 0 (thus, when I press up and if the above error is fixed, it thinks the line is 1 and thus still tries to jump a line up)The text was updated successfully, but these errors were encountered: