added value to move_cursor_to_end

This commit is contained in:
bansheerubber 2020-06-05 09:08:36 -07:00
parent 6a2c73d0e0
commit 0d119aa731

View File

@ -696,8 +696,8 @@ impl State {
///
/// [`Cursor`]: struct.Cursor.html
/// [`TextInput`]: struct.TextInput.html
pub fn move_cursor_to_end(&mut self) {
self.cursor.move_to(5000);
pub fn move_cursor_to_end(&mut self, value: &String) {
self.cursor.move_to(value.len());
}
}