Don't unnecessarily change ":verbose set scrollbind?"

This commit is contained in:
Tim Pope 2019-08-08 20:13:10 -04:00
parent 9420d05ddd
commit 0a536ed5af

View File

@ -4647,8 +4647,10 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args)
let temp = s:Resolve(temp) let temp = s:Resolve(temp)
let s:temp_files[s:cpath(temp)] = {'dir': s:Dir(), 'filetype': 'fugitiveblame', 'args': cmd} let s:temp_files[s:cpath(temp)] = {'dir': s:Dir(), 'filetype': 'fugitiveblame', 'args': cmd}
for winnr in range(winnr('$'),1,-1) for winnr in range(winnr('$'),1,-1)
call setwinvar(winnr, '&scrollbind', 0) if getwinvar(winnr, '&scrollbind')
if exists('+cursorbind') call setwinvar(winnr, '&scrollbind', 0)
endif
if exists('+cursorbind') && getwinvar(winnr, '&cursorbind')
call setwinvar(winnr, '&cursorbind', 0) call setwinvar(winnr, '&cursorbind', 0)
endif endif
if s:BlameBufnr(winbufnr(winnr)) > 0 if s:BlameBufnr(winbufnr(winnr)) > 0