mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-06-23 00:28:46 +02:00
escape/enter no longer exits the list, exits only the search
This commit is contained in:
@ -40,7 +40,7 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
|
|||||||
KeyCode::Esc | KeyCode::Enter => {
|
KeyCode::Esc | KeyCode::Enter => {
|
||||||
is_searching = false; // not sure why rust analyzer thinks this is unused
|
is_searching = false; // not sure why rust analyzer thinks this is unused
|
||||||
list_state.search_query.clear();
|
list_state.search_query.clear();
|
||||||
return Ok(());
|
continue;
|
||||||
}
|
}
|
||||||
KeyCode::Char(k) => {
|
KeyCode::Char(k) => {
|
||||||
list_state.search_query.push(k);
|
list_state.search_query.push(k);
|
||||||
|
Reference in New Issue
Block a user