escape/enter no longer exits the list, exits only the search

This commit is contained in:
Adhyan 2024-09-02 10:45:45 -06:00
parent 44ab7f995d
commit 547a9d947b

View file

@ -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);