mirror of
https://github.com/alacritty/alacritty.git
synced 2025-04-14 17:53:03 -04:00
parent
1a1b740c38
commit
0b3d2dac44
1 changed files with 5 additions and 1 deletions
|
@ -557,7 +557,11 @@ impl ansi::Handler for Term {
|
|||
#[inline]
|
||||
fn move_backward(&mut self, cols: Column) {
|
||||
debug_println!("move_backward: {}", cols);
|
||||
self.cursor.col -= cols;
|
||||
if cols > self.cursor.col {
|
||||
self.cursor.col = Column(0);
|
||||
} else {
|
||||
self.cursor.col -= cols;
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Reference in a new issue