mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Trap BufWinLeave which fires with 'hidden' set
This commit is contained in:
@@ -107,7 +107,7 @@ endfunction
|
||||
augroup fugitive
|
||||
autocmd!
|
||||
autocmd BufNewFile,BufReadPost * call s:Detect()
|
||||
autocmd BufUnload * execute getbufvar(+expand('<abuf>'), 'fugitive_restore')
|
||||
autocmd BufWinLeave * execute getbufvar(+expand('<abuf>'), 'fugitive_restore')
|
||||
augroup END
|
||||
|
||||
" }}}1
|
||||
|
||||
Reference in New Issue
Block a user