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.

gpui: Add exit in tab title update loop (#40628)

Xiaobo Liu8f3f7232fb44
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs
index 789652b331c..a5f53c2dad1 100644
--- a/crates/gpui/src/app.rs
+++ b/crates/gpui/src/app.rs
@@ -411,7 +411,8 @@ impl SystemWindowTabController {
for windows in controller.tab_groups.values_mut() {
for tab in windows.iter_mut() {
if tab.id == id {
- tab.title = title.clone();
+ tab.title = title;
+ return;
}
}
}