Change to use v:progpath instead of constant [skip ci]

This commit is contained in:
erw7
2019-08-18 10:54:48 +09:00
parent cc903210c9
commit 3453a2ccb0

View File

@@ -202,11 +202,7 @@ endfunc
func GetVimProg() func GetVimProg()
if empty($NVIM_TEST_ARG0) if empty($NVIM_TEST_ARG0)
" Assume the script was sourced instead of running "make". " Assume the script was sourced instead of running "make".
if has('win32') return v:progpath
return '..\\..\\..\\build\\bin\\nvim.exe'
else
return '../../../build/bin/nvim'
endif
endif endif
if has('win32') if has('win32')
return substitute($NVIM_TEST_ARG0, '/', '\\', 'g') return substitute($NVIM_TEST_ARG0, '/', '\\', 'g')