mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:8.1.1526: no numerical value for the patchlevel
Problem: No numerical value for the patchlevel. Solution: Add v:versionlong.37df9a4401Restore "highest_patch()" solely for "v:versionlong". Copy/paste Test_vvar_scriptversion2() from patch 9.1.1540. It works without ":scriptversion 2". In general, if Vim's test works with ":scriptversion 1", just port it for additional coverage. --- vim-patch:8.1.1565: MS-Windows: no sound support Problem: MS-Windows: no sound support. Solution: Add sound support for MS-Windows. (Yasuhiro Matsumoto, Ken Takata, closes vim/vim#4522)9b283523f2---- "sound" feature is N/A now but this updates "v:versionlong" docs. Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
15
runtime/lua/vim/_meta/vvars.lua
generated
15
runtime/lua/vim/_meta/vvars.lua
generated
@@ -772,6 +772,21 @@ vim.v.val = ...
|
||||
--- @type integer
|
||||
vim.v.version = ...
|
||||
|
||||
--- Like v:version, but also including the patchlevel in the last
|
||||
--- four digits. Version 8.1 with patch 123 has value 8010123.
|
||||
--- This can be used like this:
|
||||
--- ```
|
||||
--- if v:versionlong >= 8010123
|
||||
--- ```
|
||||
---
|
||||
--- However, if there are gaps in the list of patches included
|
||||
--- this will not work well. This can happen if a recent patch
|
||||
--- was included into an older version, e.g. for a security fix.
|
||||
--- Use the has() function to make sure the patch is actually
|
||||
--- included.
|
||||
--- @type integer
|
||||
vim.v.versionlong = ...
|
||||
|
||||
--- 0 during startup, 1 just before `VimEnter`.
|
||||
--- Read-only.
|
||||
--- @type integer
|
||||
|
||||
Reference in New Issue
Block a user