auto merge of #4247 : wenderen/servo/delete-one-char, r=jdm

fix #4243
This commit is contained in:
bors-servo 2014-12-05 08:43:12 -07:00
commit c6aadc5bcc

View file

@ -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 {