1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:00:06 +08:00

Merge pull request #1219 from SpaceVim/tags

Update version api
This commit is contained in:
Wang Shidong 2018-01-01 22:26:03 +08:00 committed by GitHub
commit a15581f11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,8 @@ endif
if has('nvim') if has('nvim')
function! s:version() abort function! s:version() abort
redir => l:msg let v = api_info().version
silent! execute ':version' return v.major . '.' . v.minor . '.' . v.patch
redir END
return matchstr(l:msg,'NVIM v\zs[^\n]*')
endfunction endfunction
else else
function! s:version() abort function! s:version() abort