diff --git a/packages/cli/src/ui/components/shared/text-buffer.ts b/packages/cli/src/ui/components/shared/text-buffer.ts index 26c1ddca80..81e081419b 100644 --- a/packages/cli/src/ui/components/shared/text-buffer.ts +++ b/packages/cli/src/ui/components/shared/text-buffer.ts @@ -2175,11 +2175,9 @@ export function useTextBuffer({ if (!command) { command = - (process.env['VISUAL'] ?? + process.env['VISUAL'] ?? process.env['EDITOR'] ?? - process.platform === 'win32') - ? 'notepad' - : 'vi'; + (process.platform === 'win32' ? 'notepad' : 'vi'); } dispatch({ type: 'create_undo_snapshot' });