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