vim-patch:469f870: runtime(compiler): Fix invalid expression in tombi compiler after d659fafcc

related: vim/vim#18590

469f870c5e

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-10-29 08:17:58 +08:00
parent ea57dea91f
commit 30d1d26c14

View File

@@ -24,7 +24,7 @@ if !exists('s:tombi_nocolor')
function s:VersionGE(ver, req) abort
" Compare semantic versions a.b.c ≥ x.y.z
let l:pa = map(split(a:ver), '\.'), 'str2nr(v:val)')
let l:pa = map(split(a:ver, '\.'), 'str2nr(v:val)')
let l:pb = map(split(a:req, '\.'), 'str2nr(v:val)')
while len(l:pa) < 3 | call add(l:pa, 0) | endwhile
while len(l:pb) < 3 | call add(l:pb, 0) | endwhile