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 } ;
2
2
use crossterm:: {
3
3
cursor,
4
4
event:: {
@@ -40,7 +40,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
40
40
KeyCode :: Esc | KeyCode :: Enter => {
41
41
is_searching = false ;
42
42
list_state. search_query . clear ( ) ;
43
- continue ;
44
43
}
45
44
KeyCode :: Char ( k) => {
46
45
list_state. search_query . push ( k) ;
@@ -51,7 +50,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
51
50
list_state. select_if_matches_search_query ( ) ;
52
51
53
52
list_state. draw ( stdout) ?;
54
- continue ;
55
53
}
56
54
KeyCode :: Backspace => {
57
55
list_state. search_query . pop ( ) ;
@@ -62,12 +60,10 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
62
60
list_state. select_if_matches_search_query ( ) ;
63
61
64
62
list_state. draw ( stdout) ?;
65
- continue ;
66
- }
67
- _ => {
68
- continue ;
69
63
}
64
+ _ => { }
70
65
}
66
+ continue ;
71
67
}
72
68
73
69
match key. code {
You can’t perform that action at this time.
0 commit comments