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()
if empty($NVIM_TEST_ARG0)
" Assume the script was sourced instead of running "make".
if has('win32')
return '..\\..\\..\\build\\bin\\nvim.exe'
else
return '../../../build/bin/nvim'
endif
return v:progpath
endif
if has('win32')
return substitute($NVIM_TEST_ARG0, '/', '\\', 'g')