mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Fix restore from blame
Options affected by blame are now restored when the blame window is closed while not focused.
This commit is contained in:
@@ -158,7 +158,7 @@ augroup fugitive
|
|||||||
autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p'))
|
autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p'))
|
||||||
autocmd FileType netrw call s:Detect(expand('<afile>:p'))
|
autocmd FileType netrw call s:Detect(expand('<afile>:p'))
|
||||||
autocmd VimEnter * if expand('<amatch>')==''|call s:Detect(getcwd())|endif
|
autocmd VimEnter * if expand('<amatch>')==''|call s:Detect(getcwd())|endif
|
||||||
autocmd BufWinLeave * execute getwinvar(+winnr(), 'fugitive_leave')
|
autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
|
|||||||
Reference in New Issue
Block a user