implemented hecrj's suggestion
This commit is contained in:
parent
19c07da86f
commit
5260b3072a
1 changed files with 2 additions and 2 deletions
|
|
@ -696,8 +696,8 @@ impl State {
|
|||
///
|
||||
/// [`Cursor`]: struct.Cursor.html
|
||||
/// [`TextInput`]: struct.TextInput.html
|
||||
pub fn move_cursor_to_end(&mut self, value: &String) {
|
||||
self.cursor.move_to(value.len());
|
||||
pub fn move_cursor_to_end(&mut self) {
|
||||
self.cursor.move_to(usize::MAX);
|
||||
}
|
||||
|
||||
/// Moves the [`Cursor`] of the [`TextInput`] to an arbitrary location.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue