From e6d0dea42b28a4814546bcf699ce277c365ebfc1 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 27 Nov 2018 16:29:43 +0100 Subject: test: Lua 5.2/5.3 compat #9280 Make the code run both on Lua 5.1 (which is the default for Neovim, and is what LuaJIT provides) and Lua 5.2+. --- runtime/lua/man.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/lua/man.lua') diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index b0fbe9cc35..0c67e45dc4 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -1,4 +1,5 @@ local buf_hls = {} +local unpack = table.unpack or unpack -- luacheck: ignore local function highlight_line(line, linenr) local chars = {} -- cgit