mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-01 07:53:30 +02:00
escape/enter no longer exits the list, exits only the search
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user