aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/diff-corrections/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/diff-corrections/plugin')
-rw-r--r--bundle/diff-corrections/plugin/diff_corrections.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundle/diff-corrections/plugin/diff_corrections.vim b/bundle/diff-corrections/plugin/diff_corrections.vim
index 2cf3abf..393d0f4 100644
--- a/bundle/diff-corrections/plugin/diff_corrections.vim
+++ b/bundle/diff-corrections/plugin/diff_corrections.vim
@@ -7,7 +7,12 @@ let g:loaded_diff_corrections = 1
augroup diff_corrections
autocmd!
- autocmd BufEnter * call diff_corrections#Run()
+ " 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()
+ else
+ autocmd BufEnter,FilterWritePost * call diff_corrections#Run()
+ endif
augroup END