@@ -2,10 +2,10 @@ use crate::{
2
2
accessors,
3
3
cmdbar:: CommandBar ,
4
4
components:: {
5
- event_pump, AppOption , BlameFileComponent ,
6
- BranchListComponent , CommandBlocking , CommandInfo ,
7
- CommitComponent , CompareCommitsComponent , Component ,
8
- ConfirmComponent , CreateBranchComponent , DrawableComponent ,
5
+ command_pump , event_pump, AppOption , BlameFileComponent ,
6
+ BranchListComponent , CommandInfo , CommitComponent ,
7
+ CompareCommitsComponent , Component , ConfirmComponent ,
8
+ CreateBranchComponent , DrawableComponent ,
9
9
ExternalEditorComponent , FetchComponent , FileFindPopup ,
10
10
FileRevlogComponent , HelpComponent , InspectCommitComponent ,
11
11
MsgComponent , OptionsPopupComponent , PullComponent ,
@@ -1056,14 +1056,7 @@ impl App {
1056
1056
fn commands ( & self , force_all : bool ) -> Vec < CommandInfo > {
1057
1057
let mut res = Vec :: new ( ) ;
1058
1058
1059
- for c in self . components ( ) {
1060
- if c. commands ( & mut res, force_all)
1061
- != CommandBlocking :: PassingOn
1062
- && !force_all
1063
- {
1064
- break ;
1065
- }
1066
- }
1059
+ command_pump ( & mut res, force_all, & self . components ( ) ) ;
1067
1060
1068
1061
res. push ( CommandInfo :: new (
1069
1062
strings:: commands:: find_file ( & self . key_config ) ,
0 commit comments