merge pull request #10 from rtwo

This commit is contained in:
Marco Hinz 2013-03-26 13:17:26 +01:00
commit b7ffe16d0f
2 changed files with 2 additions and 1 deletions

View File

@ -239,6 +239,7 @@ People who contributed to sy. Format: Person (Github account)
Jeremy Mack (mutewinter) Jeremy Mack (mutewinter)
Chong Li (chongli) Chong Li (chongli)
Robin Munn (rmunn) Robin Munn (rmunn)
Martin Hoch (rtwo)
============================================================================== ==============================================================================

View File

@ -313,7 +313,7 @@ endfunction
" Functions -> s:repo_get_diff_cvs {{{2 " Functions -> s:repo_get_diff_cvs {{{2
function! s:repo_get_diff_cvs(path) abort function! s:repo_get_diff_cvs(path) abort
if executable('cvs') if executable('cvs')
let diff = system('cvs diff -U0 -- '. a:path .' 2>&1 | grep --color=never "^@@ "') let diff = system('cd '. fnameescape(fnamemodify(a:path, ':h')) .' && cvs diff -U0 -- '. fnameescape(fnamemodify(a:path, ':t')) .' | grep --color=never "^@@ "')
return v:shell_error ? '' : diff return v:shell_error ? '' : diff
endif endif
endfunction endfunction