Replace \ with / in default_editor for windows

This commit is contained in:
mamichels 2020-12-18 11:11:38 +01:00 committed by GitHub
parent 386a351df7
commit af6920dee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ fn default_editor() -> String {
}
#[cfg(target_os = "windows")]
fn default_editor() -> String {
"C:\\Windows\\System32\\notepad.exe".to_owned()
"C:/Windows/System32/notepad.exe".to_owned()
}
pub fn open_editor(file_path: &Path) -> bool {