From af6920dee1dcba324f9c9ad5f5f3cc7b2da5a710 Mon Sep 17 00:00:00 2001 From: mamichels <48212402+mamichels@users.noreply.github.com> Date: Fri, 18 Dec 2020 11:11:38 +0100 Subject: [PATCH] Replace \ with / in default_editor for windows --- src/edit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit.rs b/src/edit.rs index fc1e802..c67ad5e 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -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 {