From 27a5c3abd211c2784513dab4db082fa414ad0967 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 31 May 2020 00:49:36 -0400 Subject: [PATCH] Trigger OptionSet on automatic :diffoff Closes https://github.com/tpope/vim-fugitive/issues/1545 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9c257bb..1106aea 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4817,11 +4817,11 @@ endfunction augroup fugitive_diff autocmd! - autocmd BufWinLeave * + autocmd BufWinLeave * nested \ if s:can_diffoff(+expand('')) && s:diff_window_count() == 2 | \ call s:diffoff_all(s:Dir(+expand(''))) | \ endif - autocmd BufWinEnter * + autocmd BufWinEnter * nested \ if s:can_diffoff(+expand('')) && s:diff_window_count() == 1 | \ call s:diffoff() | \ endif