From: Ingo Karkat Date: Wed, 27 Jul 2011 09:22:50 +0000 (+0200) Subject: use case-insensitive tests for VCS file types X-Git-Tag: v1.99.45~4 X-Git-Url: https://repo.or.cz/w/vcscommand.git/commitdiff_plain/1493ee11dc714b0260ea810bddf7641db0aa46fe use case-insensitive tests for VCS file types --- diff --git a/plugin/vcsbzr.vim b/plugin/vcsbzr.vim index 877990d..51505fe 100644 --- a/plugin/vcsbzr.vim +++ b/plugin/vcsbzr.vim @@ -105,7 +105,7 @@ endfunction " Function: s:bzrFunctions.Annotate(argList) {{{2 function! s:bzrFunctions.Annotate(argList) if len(a:argList) == 0 - if &filetype == 'BZRannotate' + if &filetype ==? 'bzrannotate' " Perform annotation of the version indicated by the current line. let caption = matchstr(getline('.'),'\v^\s+\zs\d+') let options = ' -r' . caption diff --git a/plugin/vcscvs.vim b/plugin/vcscvs.vim index 53e6770..4f4a518 100644 --- a/plugin/vcscvs.vim +++ b/plugin/vcscvs.vim @@ -180,7 +180,7 @@ endfunction " Function: s:cvsFunctions.Annotate(argList) {{{2 function! s:cvsFunctions.Annotate(argList) if len(a:argList) == 0 - if &filetype == 'CVSannotate' + if &filetype ==? 'cvsannotate' " This is a CVSAnnotate buffer. Perform annotation of the version " indicated by the current line. let caption = matchstr(getline('.'),'\v^[0-9.]+') diff --git a/plugin/vcshg.vim b/plugin/vcshg.vim index 3d01a13..0f37184 100644 --- a/plugin/vcshg.vim +++ b/plugin/vcshg.vim @@ -110,7 +110,7 @@ endfunction " Function: s:hgFunctions.Annotate(argList) {{{2 function! s:hgFunctions.Annotate(argList) if len(a:argList) == 0 - if &filetype == 'HGannotate' + if &filetype ==? 'hgannotate' " Perform annotation of the version indicated by the current line. let caption = matchstr(getline('.'),'\v^\s*\w+\s+\zs\d+') let options = ' -un -r' . caption diff --git a/plugin/vcssvk.vim b/plugin/vcssvk.vim index b58b603..f20e454 100644 --- a/plugin/vcssvk.vim +++ b/plugin/vcssvk.vim @@ -104,7 +104,7 @@ endfunction " Function: s:svkFunctions.Annotate(argList) {{{2 function! s:svkFunctions.Annotate(argList) if len(a:argList) == 0 - if &filetype == 'SVKannotate' + if &filetype ==? 'svkannotate' " Perform annotation of the version indicated by the current line. let caption = matchstr(getline('.'),'\v^\s+\zs\d+') let options = ' -r' . caption diff --git a/plugin/vcssvn.vim b/plugin/vcssvn.vim index 30f7a24..f456829 100644 --- a/plugin/vcssvn.vim +++ b/plugin/vcssvn.vim @@ -115,7 +115,7 @@ endfunction " Function: s:svnFunctions.Annotate(argList) {{{2 function! s:svnFunctions.Annotate(argList) if len(a:argList) == 0 - if &filetype == 'SVNannotate' + if &filetype ==? 'svnannotate' " Perform annotation of the version indicated by the current line. let caption = matchstr(getline('.'),'\v^\s+\zs\d+') let options = ' -r' . caption