commit a1bdea305bcb7d5eebd15bfd10ad130d09b3e2f3 (tree)
parent be42215003c4955eae8f72fa14af7a371b6088e3
Author: Tim Pope <code@tpope.net>
Date: Tue, 4 Oct 2011 03:10:04 -0400
Fix restore from blame
Options affected by blame are now restored when the blame window is
closed while not focused.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -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