Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Always zero panel's entry counts when clearing entries (#26924)
Cole Miller88907eeb382f
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rsindex ef184af6a8d..cea1d9b4631 100644--- a/crates/git_ui/src/git_panel.rs+++ b/crates/git_ui/src/git_panel.rs@@ -2237,7 +2237,14 @@ impl GitPanel {fn update_visible_entries(&mut self, cx: &mut Context<Self>) {self.entries.clear();self.single_staged_entry.take();- self.single_staged_entry.take();+ self.conflicted_count = 0;+ self.conflicted_staged_count = 0;+ self.new_count = 0;+ self.tracked_count = 0;+ self.new_staged_count = 0;+ self.tracked_staged_count = 0;+ self.entry_count = 0;+let mut changed_entries = Vec::new();let mut new_entries = Vec::new();let mut conflict_entries = Vec::new();