From a646064433d7505870243f2f7ace6228c7c7b1fc Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 14 Oct 2009 19:51:08 -0400 Subject: [PATCH] Trap BufWinLeave which fires with 'hidden' set --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 196d886..0d35728 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -107,7 +107,7 @@ endfunction augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * call s:Detect() - autocmd BufUnload * execute getbufvar(+expand(''), 'fugitive_restore') + autocmd BufWinLeave * execute getbufvar(+expand(''), 'fugitive_restore') augroup END " }}}1