From d7becce9aafa1ebf60f9db7565ad65e39229b7a9 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 17 Apr 2024 13:28:11 +0200 Subject: [PATCH] git: Only show inline git blame when editor is focused (#10680) Release Notes: - N/A --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 7beabfba48..ff6778125c 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -8946,7 +8946,7 @@ impl Editor { } pub fn render_git_blame_inline(&mut self, cx: &mut WindowContext) -> bool { - self.show_git_blame_inline && self.has_blame_entries(cx) + self.focus_handle.is_focused(cx) && self.show_git_blame_inline && self.has_blame_entries(cx) } fn has_blame_entries(&self, cx: &mut WindowContext) -> bool {