Make test flag more specific.

This commit is contained in:
Andy Stewart
2018-03-08 11:47:08 +00:00
parent 538e07882a
commit 380e7935b7
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ function! s:fix_file_references(filepath, hunk_diff)
return join(lines, "\n")."\n" return join(lines, "\n")."\n"
endfunction endfunction
if $TEST if $VIM_GITGUTTER_TEST
function! gitgutter#hunk#fix_file_references(filepath, hunk_diff) function! gitgutter#hunk#fix_file_references(filepath, hunk_diff)
return s:fix_file_references(a:filepath, a:hunk_diff) return s:fix_file_references(a:filepath, a:hunk_diff)
endfunction endfunction

View File

@@ -2,7 +2,7 @@
VIM="/Applications/MacVim.app/Contents/MacOS/Vim -v" VIM="/Applications/MacVim.app/Contents/MacOS/Vim -v"
export TEST=1 export VIM_GITGUTTER_TEST=1
$VIM -u NONE -U NONE -N \ $VIM -u NONE -U NONE -N \
--cmd 'set rtp+=../' \ --cmd 'set rtp+=../' \