Fix endif error

This commit is contained in:
Tim Pope
2010-06-02 23:43:33 -04:00
parent 6c44c4795e
commit ffcc12de5f

View File

@@ -1000,7 +1000,7 @@ call s:command("-bang -bar -nargs=? -complete=customlist,s:EditComplete Gdiff :e
augroup fugitive_diff
autocmd!
autocmd BufWinLeave * if s:diff_window_count() == 2 && &diff && getbufvar(+expand('<abuf>'), 'git_dir') !=# '' | windo call s:diff_off() | endif
autocmd BufWinLeave * if s:diff_window_count() == 2 && &diff && getbufvar(+expand('<abuf>'), 'git_dir') !=# '' | execute 'windo call s:diff_off()' | endif
autocmd BufWinEnter * if s:diff_window_count() == 1 && &diff && getbufvar(+expand('<abuf>'), 'git_dir') !=# '' | call s:diff_off() | endif
augroup END