aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/git-blamer/autoload
diff options
context:
space:
mode:
authorTeddy Wing2018-03-07 21:08:47 +0100
committerTeddy Wing2018-03-07 21:08:47 +0100
commit56440acd5b4dbd5d871021088ef4c2080cda346d (patch)
treeff55180a129ebe4d16acc0d95b822388c25544d9 /bundle/git-blamer/autoload
parenta48836ad6f4e8aae8b1dcd5b5c0d8a5935271abc (diff)
downloaddotvim-56440acd5b4dbd5d871021088ef4c2080cda346d.tar.bz2
git-blamer: Use `syncbind` to aid horizontal line alignment
Adding `syncbind` appears to fix the bug where in certain cases the GitBlamer cursor line and the buffer cursor line weren't horizontally aligned.
Diffstat (limited to 'bundle/git-blamer/autoload')
-rw-r--r--bundle/git-blamer/autoload/git_blamer.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundle/git-blamer/autoload/git_blamer.vim b/bundle/git-blamer/autoload/git_blamer.vim
index d12578b..cafb332 100644
--- a/bundle/git-blamer/autoload/git_blamer.vim
+++ b/bundle/git-blamer/autoload/git_blamer.vim
@@ -31,6 +31,7 @@ function! git_blamer#Blame()
setlocal noswapfile nowrap nolist nobuflisted buftype=nofile bufhidden=wipe
setlocal scrollbind cursorbind
+ syncbind
" Restore starting file's scrollbind on exit
autocmd BufWinLeave <buffer> execute b:git_blamer_restore