mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Correct select all
Fixes assertion failure. Set selection direction forward on select all.
This commit is contained in:
parent
9c7efd9151
commit
7db13e93b7
2 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue