mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-18 10:01:29 -07: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) {
|
if (!command) {
|
||||||
command =
|
command =
|
||||||
(process.env['VISUAL'] ??
|
process.env['VISUAL'] ??
|
||||||
process.env['EDITOR'] ??
|
process.env['EDITOR'] ??
|
||||||
process.platform === 'win32')
|
(process.platform === 'win32' ? 'notepad' : 'vi');
|
||||||
? 'notepad'
|
|
||||||
: 'vi';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch({ type: 'create_undo_snapshot' });
|
dispatch({ type: 'create_undo_snapshot' });
|
||||||
|
|||||||
Reference in New Issue
Block a user