1
0
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:
Jiajie Chen 2019-02-28 15:53:41 +08:00
parent 29865d7aaa
commit 6ea04c91b2

View File

@ -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');
}
}
_ => {