Skip to content

Commit

Permalink
better to use exists('*exepath')
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Sep 12, 2016
1 parent 8575d9e commit 168c4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/go/path.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 168c4a4

Please sign in to comment.