From 1905ba55d49bf2bc29b494f48205d857923080a1 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 27 Sep 2022 17:05:21 -0700 Subject: [PATCH] Fixed minor issue with pane defocusing Co-Authored-By: kay@zed.dev --- crates/workspace/src/pane.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index 752a941c59..46ce9eb97f 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -1493,6 +1493,7 @@ impl View for Pane { .last_focused_view .as_ref() .and_then(|handle| handle.upgrade(cx)) + .filter(|handle| handle.id() != self.tab_bar_context_menu.id()) { cx.focus(last_focused_view); } else {