From 61f9f1fd09718822581c14e84aa1012e72a41c65 Mon Sep 17 00:00:00 2001 From: Bob Hiestand Date: Fri, 19 Feb 2010 08:58:18 -0600 Subject: [PATCH] VCSVimDiff: Preserve filetype in review buffers. --- plugin/vcscommand.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/vcscommand.vim b/plugin/vcscommand.vim index 47a7f50..1c5b98e 100644 --- a/plugin/vcscommand.vim +++ b/plugin/vcscommand.vim @@ -906,7 +906,7 @@ function! s:VCSVimDiff(...) if exists('s:vimDiffSourceBuffer') call s:WipeoutCommandBuffers(s:vimDiffSourceBuffer, 'vimdiff') endif - let resultBuffer = s:plugins[vcsType][1].Review([a:1]) + let resultBuffer = s:VCSReview(a:1) if resultBuffer < 0 echomsg 'Can''t open revision ' . a:1 return resultBuffer @@ -917,7 +917,7 @@ function! s:VCSVimDiff(...) " If no split method is defined, cheat, and set it to vertical. try call s:OverrideOption('VCSCommandSplit', orientation) - let resultBuffer = s:plugins[vcsType][1].Review([a:2]) + let resultBuffer = s:VCSReview(a:2) finally call s:OverrideOption('VCSCommandSplit') endtry @@ -936,9 +936,9 @@ function! s:VCSVimDiff(...) call s:OverrideOption('VCSCommandSplit', orientation) try if(a:0 == 0) - let resultBuffer = s:plugins[vcsType][1].Review([]) + let resultBuffer = s:VCSReview() else - let resultBuffer = s:plugins[vcsType][1].Review([a:1]) + let resultBuffer = s:VCSReview(a:1) endif finally call s:OverrideOption('VCSCommandSplit') -- 2.11.4.GIT