From 0d119aa73197d545f12d95e5a2549a68d3067de9 Mon Sep 17 00:00:00 2001 From: bansheerubber Date: Fri, 5 Jun 2020 09:08:36 -0700 Subject: added value to move_cursor_to_end --- native/src/widget/text_input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native') diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 9e7d504a..0dbcc3d6 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) { - self.cursor.move_to(5000); + pub fn move_cursor_to_end(&mut self, value: &String) { + self.cursor.move_to(value.len()); } } -- cgit