File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
72
72
}
73
73
}
74
74
KeyCode :: Char ( 'p' ) => {
75
- let message = if list_state. filter ( ) == Filter :: Pending {
75
+ if list_state. filter ( ) == Filter :: Pending {
76
76
list_state. set_filter ( Filter :: None ) ;
77
- "Disabled filter PENDING"
77
+ list_state . message . push_str ( "Disabled filter PENDING" ) ;
78
78
} else {
79
79
list_state. set_filter ( Filter :: Pending ) ;
80
- "Enabled filter PENDING │ Press p again to disable the filter"
81
- } ;
82
-
83
- list_state . message . push_str ( message ) ;
80
+ list_state . message . push_str (
81
+ "Enabled filter PENDING │ Press p again to disable the filter" ,
82
+ ) ;
83
+ }
84
84
}
85
85
KeyCode :: Char ( 'r' ) => list_state. reset_selected ( ) ?,
86
86
KeyCode :: Char ( 'c' ) => {
You can’t perform that action at this time.
0 commit comments