fix(editors): fix neovim closing when using modify with editor (#5337)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Ahmed Mughal 2025-08-22 22:57:11 +05:00 committed by GitHub
parent 76bbbac7ff
commit d35abdab99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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',
],

View file

@ -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,
],