diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 3a6112f..1cd4da5 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -150,7 +150,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_restore') + autocmd BufWinLeave * execute getwinvar(+winnr(), 'fugitive_leave') augroup END " }}}1 @@ -1336,7 +1336,7 @@ function! s:Blame(bang,line1,line2,count,args) abort let b:git_dir = git_dir let b:fugitive_type = 'blame' let b:fugitive_blamed_bufnr = bufnr - let w:fugitive_restore = restore + let w:fugitive_leave = restore let b:fugitive_blame_arguments = join(a:args,' ') call s:Detect(expand('%:p')) execute top