Cosmetic changes

This commit is contained in:
Yasuhiro Matsumoto
2020-01-10 00:23:48 +09:00
parent 58e3eb39dd
commit de68f3a138
2 changed files with 17 additions and 33 deletions

View File

@@ -21,15 +21,11 @@ function! s:executable(cmd) abort
if !has('win32')
return !empty(globpath(l:paths, a:cmd))
endif
if !empty(globpath(l:paths, a:cmd . '.exe'))
return 1
endif
if !empty(globpath(l:paths, a:cmd . '.cmd'))
return 1
endif
if !empty(globpath(l:paths, a:cmd . '.bat'))
return 1
endif
for l:ext in ['.exe', '.cmd', '.bat']
if !empty(globpath(l:paths, a:cmd . l:ext))
return 1
endif
endfor
return 0
endfunction