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:
Tim Pope
2011-10-04 03:10:04 -04:00
parent be42215003
commit a1bdea305b

View File

@@ -158,7 +158,7 @@ augroup fugitive
autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p'))
autocmd FileType netrw call s:Detect(expand('<afile>:p'))
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
" }}}1