@@ -4,9 +4,9 @@ use crate::{
4
4
cmdbar:: CommandBar ,
5
5
components:: {
6
6
command_pump, event_pump, AppOption , BlameFileComponent ,
7
- BranchListComponent , CommandInfo , CommitComponent ,
8
- CompareCommitsComponent , Component , ConfirmComponent ,
9
- CreateBranchComponent , DrawableComponent ,
7
+ BlameFileOpen , BranchListComponent , CommandInfo ,
8
+ CommitComponent , CompareCommitsComponent , Component ,
9
+ ConfirmComponent , CreateBranchComponent , DrawableComponent ,
10
10
ExternalEditorComponent , FetchComponent , FileRevlogComponent ,
11
11
FuzzyFindPopup , FuzzyFinderTarget , HelpComponent ,
12
12
InspectCommitComponent , LogSearchPopupComponent ,
@@ -138,6 +138,18 @@ impl App {
138
138
options. borrow ( ) . current_tab ( )
139
139
} ;
140
140
141
+ if let Some ( StartMode :: BlameFile { path_in_workdir } ) =
142
+ start_mode
143
+ {
144
+ queue. push ( InternalEvent :: OpenPopup (
145
+ StackablePopupOpen :: BlameFile ( BlameFileOpen {
146
+ file_path : path_in_workdir. display ( ) . to_string ( ) ,
147
+ commit_id : None ,
148
+ selection : None ,
149
+ } ) ,
150
+ ) ) ;
151
+ }
152
+
141
153
let mut app = Self {
142
154
input,
143
155
reset : ConfirmComponent :: new (
@@ -511,6 +523,7 @@ impl App {
511
523
self . reset_popup . update ( ) ?;
512
524
513
525
self . update_commands ( ) ;
526
+ self . process_internal_events ( ) ?;
514
527
515
528
Ok ( ( ) )
516
529
}
0 commit comments