Ctrl+C resets the current history number

This commit is contained in:
Justine 2023-02-20 17:59:21 +01:00
parent 8151ad964b
commit d768ee38b2

View File

@ -356,6 +356,7 @@ pub mod shell {
Key::Ctrl('c') => {
current_pos = 0;
max_pos = 0;
current_number = get_curr_history_number();
mycommand.clear();
write!(stdout, "\r\n--CANCEL--\r\n");
write!(stdout, "{}", conf.promptline);