implemented hecrj's suggestion
This commit is contained in:
parent
19c07da86f
commit
5260b3072a
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user