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_panel: Fix FocusChanges does nothing with no entries (#42553)

Xipeng Jin28a0b826180e
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 81732732aff..dbed85ba787 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -745,7 +745,7 @@ impl GitPanel {
) {
self.select_first_entry_if_none(cx);
- cx.focus_self(window);
+ self.focus_handle.focus(window);
cx.notify();
}