@@ -7,7 +7,7 @@ use crate::{
77 } ,
88 keys:: { key_match, SharedKeyConfig } ,
99 popups:: { FileRevOpen , InspectCommitOpen } ,
10- queue:: { Context , InternalEvent , Queue , StackablePopupOpen } ,
10+ queue:: { InternalEvent , Queue , StackablePopupOpen } ,
1111 string_utils:: tabs_to_spaces,
1212 strings,
1313 ui:: { self , style:: SharedTheme , AsyncSyntaxJob , SyntaxText } ,
@@ -96,7 +96,7 @@ pub struct BlameFilePopup {
9696 table_state : std:: cell:: Cell < TableState > ,
9797 key_config : SharedKeyConfig ,
9898 current_height : std:: cell:: Cell < usize > ,
99- blame : Option < BlameProcess > ,
99+ pub blame : Option < BlameProcess > ,
100100 app_sender : Sender < AsyncAppNotification > ,
101101 git_sender : Sender < AsyncGitNotification > ,
102102 repo : RepoPathRef ,
@@ -327,9 +327,7 @@ impl Component for BlameFilePopup {
327327 self . hide_stacked ( true ) ;
328328 self . visible = true ;
329329 self . queue . push ( InternalEvent :: OpenPopup (
330- StackablePopupOpen :: GotoLine ( Context :: Blame (
331- self . blame . clone ( ) ,
332- ) ) ,
330+ StackablePopupOpen :: GotoLine ,
333331 ) ) ;
334332 }
335333
@@ -751,7 +749,8 @@ impl BlameFilePopup {
751749 {
752750 let mut table_state = self . table_state . take ( ) ;
753751 let max_line_number = self . get_max_line_number ( ) ;
754- table_state. select ( Some ( selection. min ( max_line_number) ) ) ;
752+ table_state
753+ . select ( Some ( selection. clamp ( 0 , max_line_number) ) ) ;
755754 self . table_state . set ( table_state) ;
756755 }
757756 }
0 commit comments