File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1- use anyhow:: { Context , Ok , Result } ;
1+ use anyhow:: { Context , Result } ;
22use crossterm:: {
33 cursor,
44 event:: {
@@ -40,7 +40,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
4040 KeyCode :: Esc | KeyCode :: Enter => {
4141 is_searching = false ;
4242 list_state. search_query . clear ( ) ;
43- continue ;
4443 }
4544 KeyCode :: Char ( k) => {
4645 list_state. search_query . push ( k) ;
@@ -51,7 +50,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
5150 list_state. select_if_matches_search_query ( ) ;
5251
5352 list_state. draw ( stdout) ?;
54- continue ;
5553 }
5654 KeyCode :: Backspace => {
5755 list_state. search_query . pop ( ) ;
@@ -62,12 +60,10 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
6260 list_state. select_if_matches_search_query ( ) ;
6361
6462 list_state. draw ( stdout) ?;
65- continue ;
66- }
67- _ => {
68- continue ;
6963 }
64+ _ => { }
7065 }
66+ continue ;
7167 }
7268
7369 match key. code {
You can’t perform that action at this time.
0 commit comments