Skip to content

Commit f701ab1

Browse files
scidominoThomas-Shephard
authored andcommitted
fix bad fallback logic external editor logic (google-gemini#17166)
1 parent a74c0d5 commit f701ab1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/cli/src/ui/components/shared/text-buffer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,11 +2242,9 @@ export function useTextBuffer({
22422242

22432243
if (!command) {
22442244
command =
2245-
(process.env['VISUAL'] ??
2245+
process.env['VISUAL'] ??
22462246
process.env['EDITOR'] ??
2247-
process.platform === 'win32')
2248-
? 'notepad'
2249-
: 'vi';
2247+
(process.platform === 'win32' ? 'notepad' : 'vi');
22502248
}
22512249

22522250
dispatch({ type: 'create_undo_snapshot' });

0 commit comments

Comments
 (0)