diff options
-rw-r--r-- | bundle/diff-corrections/plugin/diff_corrections.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundle/diff-corrections/plugin/diff_corrections.vim b/bundle/diff-corrections/plugin/diff_corrections.vim index 393d0f4..410a55b 100644 --- a/bundle/diff-corrections/plugin/diff_corrections.vim +++ b/bundle/diff-corrections/plugin/diff_corrections.vim @@ -10,6 +10,11 @@ augroup diff_corrections " https://vi.stackexchange.com/questions/12847/automatically-disable-cursorline-when-in-diff-mode/12852#12852 if has('patch-8.0.0736') autocmd OptionSet diff call diff_corrections#Run() + + " OptionSet only catches cases where we explicitly enter diff mode. + " This covers cases where the buffer is already in diff mode, as from + " vimdiff. + autocmd BufEnter * call diff_corrections#Run() else autocmd BufEnter,FilterWritePost * call diff_corrections#Run() endif |