diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-03-12 17:10:00 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-03-13 20:32:01 +0100 |
| commit | 017d8aa298254f887a2df1983039f3d678d3ed1a (patch) | |
| tree | 64c931e550b959cfeded9229567f04c5a2483549 /runtime/lua/vim/version.lua | |
| parent | 682c77805c9e592be8c5932541609c9934ec9d1a (diff) | |
| download | rneovim-017d8aa298254f887a2df1983039f3d678d3ed1a.tar.gz rneovim-017d8aa298254f887a2df1983039f3d678d3ed1a.tar.bz2 rneovim-017d8aa298254f887a2df1983039f3d678d3ed1a.zip | |
refactor: rename _ensure_integer => _assert_integer
Diffstat (limited to 'runtime/lua/vim/version.lua')
| -rw-r--r-- | runtime/lua/vim/version.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/version.lua b/runtime/lua/vim/version.lua index 652d645325..e0e81c6861 100644 --- a/runtime/lua/vim/version.lua +++ b/runtime/lua/vim/version.lua @@ -201,9 +201,9 @@ function M._version(version, strict) -- Adapted from https://github.com/folke/la or (major and minor and patch and major ~= '' and minor ~= '' and patch ~= '') then return setmetatable({ - major = vim._ensure_integer(major), - minor = minor == '' and 0 or vim._ensure_integer(minor), - patch = patch == '' and 0 or vim._ensure_integer(patch), + major = vim._assert_integer(major), + minor = minor == '' and 0 or vim._assert_integer(minor), + patch = patch == '' and 0 or vim._assert_integer(patch), prerelease = prerel ~= '' and prerel or nil, build = build ~= '' and build or nil, }, Version) |