Ctrl+C resets the current history number
This commit is contained in:
parent
8151ad964b
commit
d768ee38b2
@ -356,6 +356,7 @@ pub mod shell {
|
|||||||
Key::Ctrl('c') => {
|
Key::Ctrl('c') => {
|
||||||
current_pos = 0;
|
current_pos = 0;
|
||||||
max_pos = 0;
|
max_pos = 0;
|
||||||
|
current_number = get_curr_history_number();
|
||||||
mycommand.clear();
|
mycommand.clear();
|
||||||
write!(stdout, "\r\n--CANCEL--\r\n");
|
write!(stdout, "\r\n--CANCEL--\r\n");
|
||||||
write!(stdout, "{}", conf.promptline);
|
write!(stdout, "{}", conf.promptline);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user