fix(editors): fix neovim closing when using modify with editor (#5337)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
parent
76bbbac7ff
commit
d35abdab99
2 changed files with 2 additions and 2 deletions
|
|
@ -290,7 +290,7 @@ describe('editor utils', () => {
|
||||||
'-c',
|
'-c',
|
||||||
'wincmd l | setlocal statusline=%#StatusBold#NEW\\ FILE\\ :wqa(save\\ &\\ quit)\\ \\|\\ i/esc(toggle\\ edit\\ mode)',
|
'wincmd l | setlocal statusline=%#StatusBold#NEW\\ FILE\\ :wqa(save\\ &\\ quit)\\ \\|\\ i/esc(toggle\\ edit\\ mode)',
|
||||||
'-c',
|
'-c',
|
||||||
'autocmd WinClosed * wqa',
|
'autocmd BufWritePost * wqa',
|
||||||
'old.txt',
|
'old.txt',
|
||||||
'new.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)',
|
'wincmd l | setlocal statusline=%#StatusBold#NEW\\ FILE\\ :wqa(save\\ &\\ quit)\\ \\|\\ i/esc(toggle\\ edit\\ mode)',
|
||||||
// Auto close all windows when one is closed
|
// Auto close all windows when one is closed
|
||||||
'-c',
|
'-c',
|
||||||
'autocmd WinClosed * wqa',
|
'autocmd BufWritePost * wqa',
|
||||||
oldPath,
|
oldPath,
|
||||||
newPath,
|
newPath,
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue