fix(command): space e does not focus explorer when no files are opened

pull/9/head
wongjiahau 2 years ago
parent 72495363f1
commit 94e2c2989b

@ -2241,8 +2241,8 @@ fn reveal_current_file(cx: &mut Context) {
None => { None => {
editor.explorer = Some(overlayed(ui::Explorer::new(cx)?)); editor.explorer = Some(overlayed(ui::Explorer::new(cx)?));
let explorer = editor.explorer.as_mut().unwrap(); let explorer = editor.explorer.as_mut().unwrap();
explorer.content.reveal_current_file(cx)?;
explorer.content.focus(); explorer.content.focus();
explorer.content.reveal_current_file(cx)?;
Ok(()) Ok(())
} }
})() })()

Loading…
Cancel
Save