From 380e7935b7b4cac10d3bc3031d492deaf5008495 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 8 Mar 2018 11:47:08 +0000 Subject: [PATCH] Make test flag more specific. --- autoload/gitgutter/hunk.vim | 2 +- test/test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/gitgutter/hunk.vim b/autoload/gitgutter/hunk.vim index 5876d2b..d3e55bb 100644 --- a/autoload/gitgutter/hunk.vim +++ b/autoload/gitgutter/hunk.vim @@ -244,7 +244,7 @@ function! s:fix_file_references(filepath, hunk_diff) return join(lines, "\n")."\n" endfunction -if $TEST +if $VIM_GITGUTTER_TEST function! gitgutter#hunk#fix_file_references(filepath, hunk_diff) return s:fix_file_references(a:filepath, a:hunk_diff) endfunction diff --git a/test/test b/test/test index 1ca0786..4daf052 100755 --- a/test/test +++ b/test/test @@ -2,7 +2,7 @@ VIM="/Applications/MacVim.app/Contents/MacOS/Vim -v" -export TEST=1 +export VIM_GITGUTTER_TEST=1 $VIM -u NONE -U NONE -N \ --cmd 'set rtp+=../' \