mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 00:16:17 +04:00
Fix line editing bug
This commit is contained in:
parent
29865d7aaa
commit
6ea04c91b2
@ -159,7 +159,9 @@ fn get_line(history: &mut Vec<Vec<u8>>) -> String {
|
||||
}
|
||||
cursor += 1;
|
||||
for _i in cursor..line_vec.len() {
|
||||
put_char(BS);
|
||||
put_char(ESC);
|
||||
put_char(b'[');
|
||||
put_char(b'D');
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
|
Loading…
Reference in New Issue
Block a user