Skip to content

Commit c520e4d

Browse files
author
Naseschwarz
committed
Blame from file_revlog with correct file
1 parent c9d5b5c commit c520e4d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/popups/file_revlog.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,19 @@ impl Component for FileRevlogPopup {
516516
));
517517
};
518518
} else if key_match(key, self.key_config.keys.blame) {
519-
if let Some(open_request) =
520-
self.open_request.clone()
519+
if let Some(selected_item) =
520+
self.selected_item().map(ToOwned::to_owned)
521521
{
522522
self.hide_stacked(true);
523523
self.queue.push(InternalEvent::OpenPopup(
524524
StackablePopupOpen::BlameFile(
525525
BlameFileOpen {
526-
file_path: open_request.file_path,
527-
commit_id: self.selected_commit(),
526+
file_path: selected_item
527+
.file_path
528+
.clone(),
529+
commit_id: Some(
530+
selected_item.commit,
531+
),
528532
selection: None,
529533
},
530534
),

0 commit comments

Comments
 (0)