From 0c1ca2a45a2d8136c5944d7833eb114d9b30aad5 Mon Sep 17 00:00:00 2001 From: Andrew Farkas <6060305+HactarCE@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:08:41 -0500 Subject: [PATCH] Improve `pane: reopen closed item` to not reopen closed tabs (#42568) Closes #42134 Release Notes: - Improved `pane: reopen closed item` to not reopen closed tabs. --- 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 3965aeb4211cf8834bbcf4e52709f2abf09343fd..1f950460299443187457275185d3a28763b11166 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -4116,6 +4116,7 @@ impl NavHistory { is_preview, }); } + NavigationMode::ClosingItem if is_preview => return, NavigationMode::ClosingItem => { if state.closed_stack.len() >= MAX_NAVIGATION_HISTORY_LEN { state.closed_stack.pop_front();