motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit a8163625f8ddd8bf9e5baaaf4fad5e324d79acbe (tree)
parent 7079d0c7e28bee6d617557e467abb3b5217154a9
Author: Tim Pope <code@tpope.net>
Date:   Thu, 15 Aug 2019 22:38:56 -0400

Vim automatically sets cursorbind for diff buffers

References https://github.com/tpope/vim-fugitive/pull/937

Diffstat:
Mautoload/fugitive.vim | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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')