We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2da0d8 + 5f11e3a commit d8549fdCopy full SHA for d8549fd
packages/core/src/utils/editor.ts
@@ -181,11 +181,8 @@ export async function openDiff(
181
case 'vim':
182
case 'neovim': {
183
// Use execSync for terminal-based editors
184
- const command =
185
- process.platform === 'win32'
186
- ? `${diffCommand.command} ${diffCommand.args.join(' ')}`
187
- : `${diffCommand.command} ${diffCommand.args.map((arg) => `"${arg}"`).join(' ')}`;
188
- execSync(command, {
+ const args = diffCommand.args;
+ execFileSync(diffCommand.command, args, {
189
stdio: 'inherit',
190
encoding: 'utf8',
191
});
0 commit comments