editor: Fix blame hover not working when inline git blame is disabled (#42992)

Closes #42936

Release Notes:

- Fixed editor blame hover not working when inline git blame is disabled

Here's the before/after:


https://github.com/user-attachments/assets/a3875011-4a27-45b3-b638-3e146c06f1fe
This commit is contained in:
Mayank Verma
2025-12-03 12:25:31 -05:00
committed by GitHub
parent 6b46a71dd0
commit 0818cedded
2 changed files with 50 additions and 19 deletions
+3
View File
@@ -6810,6 +6810,9 @@ impl Editor {
return;
};
if self.blame.is_none() {
self.start_git_blame(true, window, cx);
}
let Some(blame) = self.blame.as_ref() else {
return;
};