Replace \ with / in default_editor for windows
This commit is contained in:
parent
386a351df7
commit
af6920dee1
|
@ -29,7 +29,7 @@ fn default_editor() -> String {
|
||||||
}
|
}
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
fn default_editor() -> String {
|
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 {
|
pub fn open_editor(file_path: &Path) -> bool {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user