mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-02-01 22:48:03 +00:00
fix bad fallback logic external editor logic (#17166)
This commit is contained in:
committed by
GitHub
parent
55c2783e6a
commit
9866eb0551
@@ -2242,11 +2242,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' });
|
||||
|
||||
Reference in New Issue
Block a user