From 45f9d03025eff995642be1b7b17ad75e4cdc3f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kalm=C3=A1r?= Date: Tue, 28 Jan 2025 13:21:08 +0100 Subject: [PATCH] fix(explore): Fix esc immediately closing explore in expand and try view (#14941) This fixes #14039 # Description # User-Facing Changes Pressing `esc` or `q` in expand and try view no longer closes explore. This is not intentional # Tests + Formatting # After Submitting --- crates/nu-explore/src/pager/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-explore/src/pager/mod.rs b/crates/nu-explore/src/pager/mod.rs index 2d4da2e1a7..eb4ff5c443 100644 --- a/crates/nu-explore/src/pager/mod.rs +++ b/crates/nu-explore/src/pager/mod.rs @@ -435,7 +435,7 @@ fn run_command( let new_view = cmd.spawn(engine_state, stack, value, &view_cfg)?; if let Some(view) = view_stack.curr_view.take() { - if !view.stackable { + if view.stackable { view_stack.stack.push(view); } }