From 94e2c2989b6fc664754b849bb53a56dc324daf73 Mon Sep 17 00:00:00 2001 From: wongjiahau Date: Wed, 15 Feb 2023 09:23:38 +0800 Subject: [PATCH] fix(command): space e does not focus explorer when no files are opened --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 9de52928..d0776822 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2241,8 +2241,8 @@ fn reveal_current_file(cx: &mut Context) { None => { editor.explorer = Some(overlayed(ui::Explorer::new(cx)?)); let explorer = editor.explorer.as_mut().unwrap(); - explorer.content.reveal_current_file(cx)?; explorer.content.focus(); + explorer.content.reveal_current_file(cx)?; Ok(()) } })()