mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Trigger OptionSet on automatic :diffoff
Closes https://github.com/tpope/vim-fugitive/issues/1545
This commit is contained in:
@@ -4817,11 +4817,11 @@ endfunction
|
|||||||
|
|
||||||
augroup fugitive_diff
|
augroup fugitive_diff
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinLeave *
|
autocmd BufWinLeave * nested
|
||||||
\ if s:can_diffoff(+expand('<abuf>')) && s:diff_window_count() == 2 |
|
\ if s:can_diffoff(+expand('<abuf>')) && s:diff_window_count() == 2 |
|
||||||
\ call s:diffoff_all(s:Dir(+expand('<abuf>'))) |
|
\ call s:diffoff_all(s:Dir(+expand('<abuf>'))) |
|
||||||
\ endif
|
\ endif
|
||||||
autocmd BufWinEnter *
|
autocmd BufWinEnter * nested
|
||||||
\ if s:can_diffoff(+expand('<abuf>')) && s:diff_window_count() == 1 |
|
\ if s:can_diffoff(+expand('<abuf>')) && s:diff_window_count() == 1 |
|
||||||
\ call s:diffoff() |
|
\ call s:diffoff() |
|
||||||
\ endif
|
\ endif
|
||||||
|
|||||||
Reference in New Issue
Block a user