mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00:00
escape/enter no longer exits the list, exits only the search
This commit is contained in:
parent
44ab7f995d
commit
547a9d947b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
|
|||
KeyCode::Esc | KeyCode::Enter => {
|
||||
is_searching = false; // not sure why rust analyzer thinks this is unused
|
||||
list_state.search_query.clear();
|
||||
return Ok(());
|
||||
continue;
|
||||
}
|
||||
KeyCode::Char(k) => {
|
||||
list_state.search_query.push(k);
|
||||
|
|
Loading…
Reference in a new issue