diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-07 20:11:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-07 20:11:12 +0200 |
commit | 125ed2745c0a0570c1f81f249aebb023b2deef1b (patch) | |
tree | 10d0d8af435712f4f74142ef9988fd007ef6717d /runtime | |
parent | e5b0b98a90acf420bb611fc99534982c98d0645b (diff) |
patch 8.2.2733: detecting Lua version is not reliablev8.2.2733
Problem: Detecting Lua version is not reliable.
Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/if_lua.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt index b556996985..b7ccb04c53 100644 --- a/runtime/doc/if_lua.txt +++ b/runtime/doc/if_lua.txt @@ -208,6 +208,8 @@ Vim evaluation and command execution, and others. created on demand. Example: > :lua print(vim.fn.has('timers')) < + vim.lua_version The Lua version Vim was compiled with, in the + form {major}.{minor}.{patch}, e.g. "5.1.4". ============================================================================== 3. List userdata *lua-list* |