aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/textinput.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-12-05 08:43:12 -0700
committerbors-servo <metajack+bors@gmail.com>2014-12-05 08:43:12 -0700
commitc6aadc5bcc8fccf8a6d4bc41d2b48279fa47c4e5 (patch)
tree3d21599e9a36f760ab217ced7fefac0f53b1e96a /components/script/textinput.rs
parent6bd9bf979bcfa96ea14e666b59eab01a6d6c373e (diff)
parent9c26cf7ea998638c69848e73106e342811ec8c59 (diff)
downloadservo-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.rs2
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 {