diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-11-07 19:40:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 19:40:18 -0500 |
commit | 44b75ed588626113ec3e14adacbb47d508f4688b (patch) | |
tree | f5c6153743c0d19e84194485125bcb2c34acc087 /components/script/textinput.rs | |
parent | 2ed23ce4c9ce43da7a8cbc8dd94b46574ca9fec5 (diff) | |
parent | 7db13e93b7035384276b8c029ba9288ad453f01f (diff) | |
download | servo-44b75ed588626113ec3e14adacbb47d508f4688b.tar.gz servo-44b75ed588626113ec3e14adacbb47d508f4688b.zip |
Auto merge of #22136 - pyfisch:fix-select-all, r=jdm
Correct select all
Fixes assertion failure.
Set selection direction forward on select all.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22136)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index c12c277c9f2..6f523d11bd8 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -583,6 +583,7 @@ impl<T: ClipboardProvider> TextInput<T> { let last_line = self.lines.len() - 1; self.edit_point.line = last_line; self.edit_point.index = self.lines[last_line].len(); + self.selection_direction = SelectionDirection::Forward; self.assert_ok_selection(); } |