Rename confusing w:fugitive_restore

This commit is contained in:
Tim Pope
2011-08-07 19:51:45 -04:00
parent 8e9fa7a807
commit 299a037564

View File

@@ -150,7 +150,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_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