@@ -67,7 +67,7 @@ fn open(cx: &mut compositor::Context, args: &[Cow<str>], event: PromptEvent) ->
6767 let (path, pos) = args::parse_file(arg);
6868 // If the path is a directory, open a file picker on that directory and update the status
6969 // message
70− if std::fs::canonicalize(&path)?.is_dir() {
70+ if let Ok(true) = std::fs::canonicalize(&path).map(|p| p.is_dir()) {
7171 let callback = async move {
7272 let call: job::Callback = job::Callback::EditorCompositor(Box::new(
7373 move |editor: &mut Editor, compositor: &mut Compositor| {