From 125ed2745c0a0570c1f81f249aebb023b2deef1b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 7 Apr 2021 20:11:12 +0200 Subject: patch 8.2.2733: detecting Lua version is not reliable Problem: Detecting Lua version is not reliable. Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080) --- runtime/doc/if_lua.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt index b55699698..b7ccb04c5 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* -- cgit v1.2.1