mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00: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