diff options
| author | Aram Drevekenin <aram@poor.dev> | 2020-09-24 11:39:03 +0200 |
|---|---|---|
| committer | Aram Drevekenin <aram@poor.dev> | 2020-09-24 11:39:03 +0200 |
| commit | 71d527069a46c98688ca715ea44fef7394250406 (patch) | |
| tree | 30fa7848cb4a2b54501f5775099f42df735b6c12 /src | |
| parent | fix(resizing): properly resize panes up (diff) | |
| download | sl0ppij-71d527069a46c98688ca715ea44fef7394250406.tar.gz sl0ppij-71d527069a46c98688ca715ea44fef7394250406.tar.xz sl0ppij-71d527069a46c98688ca715ea44fef7394250406.zip | |
fix(compatibility): properly delete characters in backspace
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal_pane.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal_pane.rs b/src/terminal_pane.rs index c8a8c8c2..f4fe35db 100644 --- a/src/terminal_pane.rs +++ b/src/terminal_pane.rs @@ -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(); } |
