diff options
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index 9e14f9c8e6b..6903dfc5c4a 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -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 |