mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
allow deleting last char
This commit is contained in:
parent
a451a3bdb5
commit
9c26cf7ea9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue