diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 9d6afffb..24085606 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -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.