Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/src/utils/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import { execSync, spawn } from 'child_process';
import * as shellQuote from 'shell-quote';

export type EditorType =
| 'vscode'
Expand Down Expand Up @@ -126,8 +127,8 @@ export function getDiffCommand(
// Auto close all windows when one is closed
'-c',
'autocmd WinClosed * wqa',
oldPath,
newPath,
shellQuote.quote([oldPath]),
shellQuote.quote([newPath]),
],
};
default:
Expand Down
Loading