diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-12-05 08:43:12 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-12-05 08:43:12 -0700 |
commit | c6aadc5bcc8fccf8a6d4bc41d2b48279fa47c4e5 (patch) | |
tree | 3d21599e9a36f760ab217ced7fefac0f53b1e96a /components/script/textinput.rs | |
parent | 6bd9bf979bcfa96ea14e666b59eab01a6d6c373e (diff) | |
parent | 9c26cf7ea998638c69848e73106e342811ec8c59 (diff) | |
download | servo-c6aadc5bcc8fccf8a6d4bc41d2b48279fa47c4e5.tar.gz servo-c6aadc5bcc8fccf8a6d4bc41d2b48279fa47c4e5.zip |
auto merge of #4247 : wenderen/servo/delete-one-char, r=jdm
fix #4243
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 940b9919e76..9e14f9c8e6b 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -117,7 +117,7 @@ impl TextInput { self.edit_point.index - 1 }; let suffix_start = if forward { - let is_eol = self.edit_point.index == self.current_line_length() - 1; + let is_eol = self.edit_point.index == self.current_line_length(); if self.multiline { //TODO: handle deleting from end position of current line if is_eol { |