We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 965a23d + 0b532c1 commit a0a2394Copy full SHA for a0a2394
1 file changed
packages/core/src/utils/editor.ts
@@ -5,6 +5,7 @@
5
*/
6
7
import { execSync, spawn } from 'child_process';
8
+import * as shellQuote from 'shell-quote';
9
10
export type EditorType =
11
| 'vscode'
@@ -126,8 +127,8 @@ export function getDiffCommand(
126
127
// Auto close all windows when one is closed
128
'-c',
129
'autocmd WinClosed * wqa',
- oldPath,
130
- newPath,
+ shellQuote.quote([oldPath]),
131
+ shellQuote.quote([newPath]),
132
],
133
};
134
default:
0 commit comments