mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:00:05 +08:00
Fixup
This commit is contained in:
parent
fb57821ddc
commit
678f08ad12
@ -99,7 +99,17 @@ else
|
|||||||
redir => l:msg
|
redir => l:msg
|
||||||
silent! execute ':version'
|
silent! execute ':version'
|
||||||
redir END
|
redir END
|
||||||
return matchstr(l:msg,'Included patches: v\zs[^\n]*')
|
return s:parser(matchstr(l:msg,'\(Included\ patches:\ \)\@<=[^\n]*'))
|
||||||
|
endfunction
|
||||||
|
function! s:parser(version) abort
|
||||||
|
let v_list = split(a:version, ',')
|
||||||
|
if len(v_list) == 1
|
||||||
|
let patch = split(v_list[0], '-')[1]
|
||||||
|
let v = v:version[0:0] . '.' . v:version[2:2] . '.' . patch
|
||||||
|
else
|
||||||
|
let v = v:version[0:0] . '.' . v:version[2:2] . '(' . a:version . ')'
|
||||||
|
endif
|
||||||
|
return v
|
||||||
endfunction
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user