1
0
Fork 0
forked from koniifer/ableos

ok seriously fucking wokks ok im sorry sanananana

This commit is contained in:
able 2022-07-31 05:27:27 -05:00
parent 7c16edea54
commit be2b6dfa94

View file

@ -43,12 +43,12 @@ impl Term {
match c {
'\u{08}' => {
if self.x == 0 {
warn!("IMPOSSIBLE BACKSPACE");
} else {
trace!("BACKSPACE");
self.x -= 1;
self.term[TERM_MINUS_ONE_LINE + (self.x as usize)] = '\0';
// trace!("IMPOSSIBLE BACKSPACE");
return;
}
// trace!("BACKSPACE");
self.x -= 1;
self.term[TERM_MINUS_ONE_LINE + (self.x as usize)] = '\0';
}
'\n' => {
self.move_up();