diff --git a/autoload/go/path.vim b/autoload/go/path.vim index 16c4d92617..75c466162b 100644 --- a/autoload/go/path.vim +++ b/autoload/go/path.vim @@ -151,7 +151,7 @@ function! go#path#CheckBinPath(binpath) " if it's in PATH just return it if executable(binpath) - if v:version == 704 && has('patch235') + if exists('*exepath') let binpath = exepath(binpath) endif let $PATH = old_path