Vim automatically sets cursorbind for diff buffers
References https://github.com/tpope/vim-fugitive/pull/937
This commit is contained in:
parent
7079d0c7e2
commit
a8163625f8
@ -4472,9 +4472,6 @@ function! s:Diff(autodir, keepfocus, mods, ...) abort
|
||||
endif
|
||||
let spec = s:Generate(file)
|
||||
let restore = s:diff_restore()
|
||||
if exists('+cursorbind')
|
||||
setlocal cursorbind
|
||||
endif
|
||||
let w:fugitive_diff_restore = restore
|
||||
if s:CompareAge(commit, s:DirCommitFile(spec)[1]) < 0
|
||||
let mods = s:Mods(mods, 'rightbelow')
|
||||
|
Loading…
Reference in New Issue
Block a user