From c72a689f7f4deb7e7ad9947143383ada000476ae Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 3 Dec 2011 01:10:08 -0500 Subject: [PATCH] Restore 'cursorbind' after diff Closes #122. --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 111ece1..5931dbb 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1228,6 +1228,7 @@ 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' diffthis endif endfunction