@@ -97,7 +97,6 @@ pub struct BlameFilePopup {
97
97
app_sender : Sender < AsyncAppNotification > ,
98
98
git_sender : Sender < AsyncGitNotification > ,
99
99
repo : RepoPathRef ,
100
- goto_line_popup_is_open : bool ,
101
100
}
102
101
103
102
impl DrawableComponent for BlameFilePopup {
@@ -254,7 +253,7 @@ impl Component for BlameFilePopup {
254
253
& mut self ,
255
254
event : & crossterm:: event:: Event ,
256
255
) -> Result < EventState > {
257
- if self . is_visible ( ) && ! self . goto_line_popup_is_open {
256
+ if self . is_visible ( ) {
258
257
if let Event :: Key ( key) = event {
259
258
if key_match ( key, self . key_config . keys . exit_popup ) {
260
259
self . hide_stacked ( false ) ;
@@ -322,7 +321,6 @@ impl Component for BlameFilePopup {
322
321
key,
323
322
self . key_config . keys . goto_line ,
324
323
) {
325
- self . goto_line_popup_is_open = true ;
326
324
self . hide_stacked ( true ) ;
327
325
self . visible = true ;
328
326
self . queue . push ( InternalEvent :: OpenPopup (
@@ -365,7 +363,6 @@ impl BlameFilePopup {
365
363
git_sender : env. sender_git . clone ( ) ,
366
364
blame : None ,
367
365
repo : env. repo . clone ( ) ,
368
- goto_line_popup_is_open : false ,
369
366
}
370
367
}
371
368
@@ -400,7 +397,6 @@ impl BlameFilePopup {
400
397
) ) ) ;
401
398
self . table_state . get_mut ( ) . select ( Some ( 0 ) ) ;
402
399
self . visible = true ;
403
- self . goto_line_popup_is_open = false ;
404
400
self . update ( ) ?;
405
401
406
402
Ok ( ( ) )
0 commit comments