Permalink
Browse files

Force foldmethod=diff when we restore filetype for patched buffers

  • Loading branch information...
1 parent 38f713e commit e241058e3b892ec67d8685765450c5ca9770322e @junkblocker committed Apr 6, 2012
View
@@ -1,7 +1,7 @@
" VIM plugin for doing single, multi-patch or diff code reviews {{{
" Home: http://www.vim.org/scripts/script.php?script_id=1563
-" Version : 1.0 {{{
+" Version : 1.0.1 {{{
" Author : Manpreet Singh < junkblocker@yahoo.com >
" Copyright : 2006-2012 by Manpreet Singh
" License : This file is placed in the public domain.
@@ -970,11 +970,13 @@ function! <SID>_GenericReview(argslist) "{{{
silent! 0f
endif
let &filetype = l:filetype
+ let &fdm = 'diff'
wincmd p
let &modeline=s:keep_modeline
else
silent! vnew
let &filetype = l:filetype
+ let &fdm = 'diff'
wincmd p
endif
endif
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:bazaar = {}
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:cvs = {}
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:git = {}
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:mercurial = {}
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:monotone = {}
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:perforce = {}
@@ -1,3 +1,8 @@
+" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
+" Copyright : 2006-2012 by Manpreet Singh
+" License : This file is placed in the public domain.
+" No warranties express or implied. Use at your own risk.
+"}}}
let s:PRemote = {}
let s:subversion = {}
View
@@ -1,5 +1,5 @@
*patchreview.txt* Vim global plugin for doing single, multi-patch or diff code reviews
- Version v1.0 (for Vim version 7.0 or higher)
+ Version 1.0.1 (for Vim version 7.0 or higher)
Author: Manpreet Singh < junkblocker@yahoo.com >
Copyright (C) 2006-2011 by Manpreet Singh
View
@@ -1,7 +1,7 @@
" VIM plugin for doing single, multi-patch or diff code reviews {{{
" Home: http://www.vim.org/scripts/script.php?script_id=1563
-" Version : 0.4 " {{{
+" Version : 1.0.1 " {{{
" Author : Manpreet Singh < junkblocker@yahoo.com >
" Copyright : 2006-2012 by Manpreet Singh
" License : This file is placed in the public domain.
@@ -62,7 +62,7 @@
if &cp || (! exists('g:patchreview_debug') && exists('g:loaded_patchreview'))
finish
endif
-let g:loaded_patchreview="1.0"
+let g:loaded_patchreview="1.0.1"
if v:version < 700
echomsg 'patchreview: You need at least Vim 7.0'
finish

0 comments on commit e241058

Please sign in to comment.