mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Make TextInput correctly handle multibyte chars.
This commit is contained in:
parent
c6aadc5bcc
commit
0316100785
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ impl TextInput {
|
|||
|
||||
/// Return the length of the current line under the editing point.
|
||||
fn current_line_length(&self) -> uint {
|
||||
self.lines[self.edit_point.line].len()
|
||||
self.lines[self.edit_point.line].char_len()
|
||||
}
|
||||
|
||||
/// Adjust the editing point position by a given of lines. The resulting column is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue