diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 32ef00f03..81392991e 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -507,7 +507,8 @@ pub fn file_explorer( move_to_str: &str, move_from: &Path| { let move_to = helix_stdx::path::expand_tilde(PathBuf::from(move_to_str)); - if let Err(err) = fs::rename(move_from, &move_to).map_err(|err| { + + if let Err(err) = cx.editor.move_path(move_from, &move_to).map_err(|err| { format!( "Unable to move {} {} -> {}: {err}", if move_to_str.ends_with(std::path::MAIN_SEPARATOR) {