diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 41cacde44..54fb91e00 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -213,6 +213,12 @@ fn open(cx: &mut compositor::Context, args: &[Cow], 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)?; }