From: Ingo Karkat Date: Sat, 30 Jul 2011 13:19:49 +0000 (+0200) Subject: handle &sel of 'exclusive' in split annotation X-Git-Tag: v1.99.45~3 X-Git-Url: https://repo.or.cz/w/vcscommand.git/commitdiff_plain/b731a332f605af152607c21c7cd97404b8846bed handle &sel of 'exclusive' in split annotation --- diff --git a/plugin/vcscommand.vim b/plugin/vcscommand.vim index 2698322..1ea79b6 100644 --- a/plugin/vcscommand.vim +++ b/plugin/vcscommand.vim @@ -820,7 +820,15 @@ function! s:VCSAnnotate(bang, ...) endif let originalFileType = getbufvar(originalBuffer, '&ft') let annotateFileType = getbufvar(annotateBuffer, '&ft') - execute "normal! 0zR\G/" . splitRegex . "/e\d" + + let saveselection = &selection + set selection=inclusive + try + execute "normal! 0zR\G/" . splitRegex . "/e\d" + finally + let &selection = saveselection + endtry + call setbufvar('%', '&filetype', getbufvar(originalBuffer, '&filetype')) set scrollbind leftabove vert new