mv restore into gitgutter#utility#system

This commit is contained in:
Nikita Kouevda
2023-08-31 07:50:14 -07:00
parent a5e0740801
commit 28d463f199
4 changed files with 17 additions and 18 deletions

View File

@@ -320,11 +320,7 @@ augroup gitgutter
" vim -o file1 file2
autocmd VimEnter * if winnr() != winnr('$') | call gitgutter#all(0) | endif
autocmd ShellCmdPost *
\ let s:prev_shell_error = v:shell_error |
\ call gitgutter#all(1) |
\ silent! execute '!exit ' .. s:prev_shell_error |
\ redraw!
autocmd ShellCmdPost * call gitgutter#all(1)
autocmd BufLeave term://* call gitgutter#all(1)
autocmd User FugitiveChanged call gitgutter#all(1)