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.

Fix worktree picker confirm behavior (#52939)

Mikayla Maki5a7a528516e1
diff --git a/crates/git_ui/src/worktree_picker.rs b/crates/git_ui/src/worktree_picker.rs
index c3e2259e411..2f600ae4c56 100644
--- a/crates/git_ui/src/worktree_picker.rs
+++ b/crates/git_ui/src/worktree_picker.rs
@@ -754,7 +754,7 @@ impl PickerDelegate for WorktreeListDelegate {
if entry.is_new {
self.create_worktree(&entry.worktree.display_name(), secondary, None, window, cx);
} else {
- self.open_worktree(&entry.worktree.path, secondary, window, cx);
+ self.open_worktree(&entry.worktree.path, !secondary, window, cx);
}
cx.emit(DismissEvent);