summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r--native/src/widget/text_input.rs4
1 files changed, 2 insertions, 2 deletions
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());
}
}