fix(compatibility): properly delete characters in backspace
This commit is contained in:
parent
0ea88d7e02
commit
71d527069a
1 changed files with 1 additions and 0 deletions
|
|
@ -566,6 +566,7 @@ impl vte::Perform for TerminalOutput {
|
|||
self.move_to_beginning_of_line();
|
||||
} else if byte == 08 { // backspace
|
||||
self.cursor_position -= 1;
|
||||
self.characters.truncate(self.cursor_position);
|
||||
} else if byte == 10 { // 0a, newline
|
||||
self.add_newline();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue