mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Vim automatically sets cursorbind for diff buffers
References https://github.com/tpope/vim-fugitive/pull/937
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user