diff options
author | Rohan Prinja <rohan.prinja@gmail.com> | 2014-12-05 17:06:34 +0530 |
---|---|---|
committer | Rohan Prinja <rohan.prinja@gmail.com> | 2014-12-05 17:06:34 +0530 |
commit | 9c26cf7ea998638c69848e73106e342811ec8c59 (patch) | |
tree | 9ed0001a505f84f60a4f70122b6930d2918af604 /components/script/textinput.rs | |
parent | a451a3bdb5bd37dc671dcb24b80f869ad6a82010 (diff) | |
download | servo-9c26cf7ea998638c69848e73106e342811ec8c59.tar.gz servo-9c26cf7ea998638c69848e73106e342811ec8c59.zip |
allow deleting last char
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 { |