diff --git a/helix-term/src/ui/explore.rs b/helix-term/src/ui/explore.rs index 544a1667..4d255ece 100644 --- a/helix-term/src/ui/explore.rs +++ b/helix-term/src/ui/explore.rs @@ -453,7 +453,7 @@ impl Explorer { } }; if meta.is_file() { - if let Err(e) = cx.editor.open(item.path.clone(), Action::Replace) { + if let Err(e) = cx.editor.open(&item.path.clone(), Action::Replace) { cx.editor.set_error(format!("{e}")); } state.focus = false;