Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git: Only show inline git blame when editor is focused (#10680)

Thorsten Balld7becce9aafa
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 7beabfba483..ff6778125cd 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 {