summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar bansheerubber <gary.cactus.email@gmail.com>2020-06-08 10:00:25 -0700
committerLibravatar bansheerubber <gary.cactus.email@gmail.com>2020-06-08 10:00:25 -0700
commit5260b3072ac0426489a16ab435dc9d533c5ed081 (patch)
treeb0aebaa6ef3432ae0763003ad316fe8d957a7aef /native
parent19c07da86f6481244577f30262d250df25f43c39 (diff)
downloadiced-5260b3072ac0426489a16ab435dc9d533c5ed081.tar.gz
iced-5260b3072ac0426489a16ab435dc9d533c5ed081.tar.bz2
iced-5260b3072ac0426489a16ab435dc9d533c5ed081.zip
implemented hecrj's suggestion
Diffstat (limited to 'native')
-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 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.