fix(compatibility): properly delete characters in backspace

This commit is contained in:
Aram Drevekenin 2020-09-24 11:39:03 +02:00
parent 0ea88d7e02
commit 71d527069a

View file

@ -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();
}