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();