You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" Check whether the second version string is equal to or greater than the
16
+
" first version string. Returns 1 (true) when it is, 0 (false) otherwise.
17
+
let expected_version =xolox#misc#version#parse(a:expected_version)
18
+
let available_version =xolox#misc#version#parse(a:available_version)
19
+
for idx inrange(max([len(expected_version), len(available_version)]))
20
+
let expected_number =get(expected_version, idx, 0)
21
+
let available_number =get(available_version, idx, 0)
22
+
if available_number > expected_number
23
+
callxolox#misc#msg#debug("vim-misc %s: Available version (%s) is higher than expected version (%s).", g:xolox#misc#version, a:available_version, a:expected_version)
24
+
return1
25
+
elseif available_number < expected_number
26
+
callxolox#misc#msg#debug("vim-misc %s: Available version (%s) is lower than expected version (%s).", g:xolox#misc#version, a:available_version, a:expected_version)
27
+
return0
28
+
endif
29
+
endfor
30
+
callxolox#misc#msg#debug("vim-misc %s: Available version (%s) is equal to expected version (%s).", g:xolox#misc#version, a:available_version, a:expected_version)
0 commit comments