Trap BufWinLeave which fires with 'hidden' set

This commit is contained in:
Tim Pope 2009-10-14 19:51:08 -04:00
parent 2667cfd9a0
commit a646064433

View File

@ -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