diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 5931dbb..393bdab 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1228,7 +1228,9 @@ function! s:diffthis() let w:fugitive_diff_restore .= &l:wrap ? ' wrap' : ' nowrap' let w:fugitive_diff_restore .= ' foldmethod=' . &l:foldmethod let w:fugitive_diff_restore .= ' foldcolumn=' . &l:foldcolumn - let w:fugitive_diff_restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind' + if has('cursorbind') + let w:fugitive_diff_restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind' + endif diffthis endif endfunction