aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/server_spec.lua
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2018-11-27 16:29:43 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-12-20 11:57:30 +0100
commite6d0dea42b28a4814546bcf699ce277c365ebfc1 (patch)
treea5dd79853c12837dfc35d001939f9ef947a6b75b /test/functional/eval/server_spec.lua
parentccb005b9e0d509bbe595515e7e17b0e9713a2c19 (diff)
downloadrneovim-e6d0dea42b28a4814546bcf699ce277c365ebfc1.tar.gz
rneovim-e6d0dea42b28a4814546bcf699ce277c365ebfc1.tar.bz2
rneovim-e6d0dea42b28a4814546bcf699ce277c365ebfc1.zip
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+.
Diffstat (limited to 'test/functional/eval/server_spec.lua')
-rw-r--r--test/functional/eval/server_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/eval/server_spec.lua b/test/functional/eval/server_spec.lua
index 563e619b39..8a0831bba1 100644
--- a/test/functional/eval/server_spec.lua
+++ b/test/functional/eval/server_spec.lua
@@ -6,6 +6,7 @@ local iswin = helpers.iswin
local ok = helpers.ok
local matches = helpers.matches
local expect_err = helpers.expect_err
+local unpack = table.unpack or unpack -- luacheck: ignore
local function clear_serverlist()
for _, server in pairs(funcs.serverlist()) do