aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-09-24 11:39:03 +0200
committerAram Drevekenin <aram@poor.dev>2020-09-24 11:39:03 +0200
commit71d527069a46c98688ca715ea44fef7394250406 (patch)
tree30fa7848cb4a2b54501f5775099f42df735b6c12 /src
parentfix(resizing): properly resize panes up (diff)
downloadsl0ppij-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.rs1
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();
}