implemented hecrj's suggestion

This commit is contained in:
bansheerubber 2020-06-08 10:00:25 -07:00
parent 19c07da86f
commit 5260b3072a

View File

@ -696,8 +696,8 @@ impl State {
/// ///
/// [`Cursor`]: struct.Cursor.html /// [`Cursor`]: struct.Cursor.html
/// [`TextInput`]: struct.TextInput.html /// [`TextInput`]: struct.TextInput.html
pub fn move_cursor_to_end(&mut self, value: &String) { pub fn move_cursor_to_end(&mut self) {
self.cursor.move_to(value.len()); self.cursor.move_to(usize::MAX);
} }
/// Moves the [`Cursor`] of the [`TextInput`] to an arbitrary location. /// Moves the [`Cursor`] of the [`TextInput`] to an arbitrary location.