Open a new file if nothing was found after globbing

pull/9723/head
mo8it 8 months ago
parent 10d8929b4d
commit de3ef33959

@ -213,6 +213,12 @@ fn open(cx: &mut compositor::Context, args: &[Cow<str>], event: PromptEvent) ->
}
to_open.push(entry.into_path());
}
if to_open.is_empty() {
open_file(cx, &path, pos)?;
continue;
}
for path in to_open {
open_file(cx, &path, pos)?;
}

Loading…
Cancel
Save