Vim automatically sets cursorbind for diff buffers

References https://github.com/tpope/vim-fugitive/pull/937
This commit is contained in:
Tim Pope 2019-08-15 22:38:56 -04:00
parent 7079d0c7e2
commit a8163625f8

View File

@ -4472,9 +4472,6 @@ function! s:Diff(autodir, keepfocus, mods, ...) abort
endif endif
let spec = s:Generate(file) let spec = s:Generate(file)
let restore = s:diff_restore() let restore = s:diff_restore()
if exists('+cursorbind')
setlocal cursorbind
endif
let w:fugitive_diff_restore = restore let w:fugitive_diff_restore = restore
if s:CompareAge(commit, s:DirCommitFile(spec)[1]) < 0 if s:CompareAge(commit, s:DirCommitFile(spec)[1]) < 0
let mods = s:Mods(mods, 'rightbelow') let mods = s:Mods(mods, 'rightbelow')