mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
auto merge of #4255 : ema-fox/servo/textinput, r=jdm
This commit is contained in:
commit
58f9b4ad96
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.
|
/// Return the length of the current line under the editing point.
|
||||||
fn current_line_length(&self) -> uint {
|
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
|
/// 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