mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix(editors): fix neovim closing when using modify with editor (#5337)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -290,7 +290,7 @@ describe('editor utils', () => {
|
||||
'-c',
|
||||
'wincmd l | setlocal statusline=%#StatusBold#NEW\\ FILE\\ :wqa(save\\ &\\ quit)\\ \\|\\ i/esc(toggle\\ edit\\ mode)',
|
||||
'-c',
|
||||
'autocmd WinClosed * wqa',
|
||||
'autocmd BufWritePost * wqa',
|
||||
'old.txt',
|
||||
'new.txt',
|
||||
],
|
||||
|
||||
@@ -140,7 +140,7 @@ export function getDiffCommand(
|
||||
'wincmd l | setlocal statusline=%#StatusBold#NEW\\ FILE\\ :wqa(save\\ &\\ quit)\\ \\|\\ i/esc(toggle\\ edit\\ mode)',
|
||||
// Auto close all windows when one is closed
|
||||
'-c',
|
||||
'autocmd WinClosed * wqa',
|
||||
'autocmd BufWritePost * wqa',
|
||||
oldPath,
|
||||
newPath,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user