diff options
-rw-r--r-- | src/term.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs index b4ac14af..33890ad5 100644 --- a/src/term.rs +++ b/src/term.rs @@ -570,7 +570,9 @@ impl ansi::Handler for Term { #[inline] fn backspace(&mut self) { debug_println!("backspace"); - self.cursor.col -= 1; + if self.cursor.col > Column(0) { + self.cursor.col -= 1; + } } /// Carriage return |