diff --git a/doc/signify.txt b/doc/signify.txt index 6d0ede9..20ae84f 100644 --- a/doc/signify.txt +++ b/doc/signify.txt @@ -239,6 +239,7 @@ People who contributed to sy. Format: Person (Github account) Jeremy Mack (mutewinter) Chong Li (chongli) Robin Munn (rmunn) +Martin Hoch (rtwo) ============================================================================== diff --git a/plugin/signify.vim b/plugin/signify.vim index 2929b60..afb6b75 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -313,7 +313,7 @@ endfunction " Functions -> s:repo_get_diff_cvs {{{2 function! s:repo_get_diff_cvs(path) abort 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 endif endfunction