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