From 168c4a4b3befd6221bd676c09522697e5be6bae9 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 13 Sep 2016 01:19:37 +0900 Subject: [PATCH] better to use exists('*exepath') --- autoload/go/path.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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