From a1bdea305bcb7d5eebd15bfd10ad130d09b3e2f3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 4 Oct 2011 03:10:04 -0400 Subject: [PATCH] Fix restore from blame Options affected by blame are now restored when the blame window is closed while not focused. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index fb4dcaf..57a8deb 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -158,7 +158,7 @@ augroup fugitive autocmd BufNewFile,BufReadPost * call s:Detect(expand(':p')) autocmd FileType netrw call s:Detect(expand(':p')) autocmd VimEnter * if expand('')==''|call s:Detect(getcwd())|endif - autocmd BufWinLeave * execute getwinvar(+winnr(), 'fugitive_leave') + autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave') augroup END " }}}1