We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b30988a commit 86e61f4Copy full SHA for 86e61f4
lib/utils.js
@@ -1,3 +1,4 @@
1
+import { platform } from 'node:os';
2
import which from 'which';
3
4
import { forceRunAsync } from './run.js';
@@ -62,5 +63,6 @@ export async function getEditor(options = {}) {
62
63
}
64
65
- return process.env.VISUAL || process.env.EDITOR || null;
66
+ return process.env.VISUAL || process.env.EDITOR ||
67
+ (platform() === 'win32' ? 'notepad.exe' : 'vi');
68
};
0 commit comments