parent
1a1b740c38
commit
0b3d2dac44
|
@ -557,8 +557,12 @@ impl ansi::Handler for Term {
|
|||
#[inline]
|
||||
fn move_backward(&mut self, cols: Column) {
|
||||
debug_println!("move_backward: {}", cols);
|
||||
if cols > self.cursor.col {
|
||||
self.cursor.col = Column(0);
|
||||
} else {
|
||||
self.cursor.col -= cols;
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn identify_terminal<W: io::Write>(&mut self, writer: &mut W) {
|
||||
|
|
Loading…
Reference in New Issue