We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d5b5c commit c520e4dCopy full SHA for c520e4d
src/popups/file_revlog.rs
@@ -516,15 +516,19 @@ impl Component for FileRevlogPopup {
516
));
517
};
518
} else if key_match(key, self.key_config.keys.blame) {
519
- if let Some(open_request) =
520
- self.open_request.clone()
+ if let Some(selected_item) =
+ self.selected_item().map(ToOwned::to_owned)
521
{
522
self.hide_stacked(true);
523
self.queue.push(InternalEvent::OpenPopup(
524
StackablePopupOpen::BlameFile(
525
BlameFileOpen {
526
- file_path: open_request.file_path,
527
- commit_id: self.selected_commit(),
+ file_path: selected_item
+ .file_path
528
+ .clone(),
529
+ commit_id: Some(
530
+ selected_item.commit,
531
+ ),
532
selection: None,
533
},
534
),
0 commit comments