mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
git: Only show inline git blame when editor is focused (#10680)
Release Notes: - N/A
This commit is contained in:
parent
62171387f6
commit
d7becce9aa
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user