We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b11f305 commit 8bc7a3aCopy full SHA for 8bc7a3a
1 file changed
src/ops/show.rs
@@ -87,6 +87,15 @@ fn editor(file: &Path, maybe_line: Option<u32>) -> Option<Action> {
87
88
fn parse_editor_command(editor: &str, file: &str, maybe_line: Option<u32>) -> Command {
89
let args = &editor.split_whitespace().collect::<Vec<_>>();
90
+ #[cfg(windows)]
91
+ let mut cmd = {
92
+ let mut c = Command::new("cmd");
93
+ c.arg("/C");
94
+ c.arg(args[0]);
95
+ c
96
+ };
97
+
98
+ #[cfg(not(windows))]
99
let mut cmd = Command::new(args[0]);
100
cmd.args(&args[1..]);
101
0 commit comments