mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Rename confusing w:fugitive_restore
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user