Fix: Check if get_editor request is non-scratch before early-returning
@@ -2400,7 +2400,7 @@ fn get_editor_from_tab(
scratch: bool,
config: &LapceConfig,
) -> &mut LapceEditorData {
- if path.is_none() {
+ if path.is_none() && !scratch {
let editor_tab = self.editor_tabs.get(&editor_tab_id).unwrap();
if let Some(EditorTabChild::Editor(id, _, _)) = editor_tab.active_child()
{
