aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/helpers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/shada/helpers.lua')
-rw-r--r--test/functional/shada/helpers.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/shada/helpers.lua b/test/functional/shada/helpers.lua
index b8d0352862..baa27889f3 100644
--- a/test/functional/shada/helpers.lua
+++ b/test/functional/shada/helpers.lua
@@ -1,10 +1,8 @@
local helpers = require('test.functional.helpers')(nil)
-local meths = helpers.meths
+local api = helpers.api
local write_file = helpers.write_file
local concat_tables = helpers.concat_tables
-local mpack = require('mpack')
-
local tmpname = helpers.tmpname()
-- o={
@@ -30,7 +28,7 @@ local function reset(o)
args_rm = args_rm,
args = args,
}
- meths.set_var('tmpname', tmpname)
+ api.nvim_set_var('tmpname', tmpname)
end
local clear = function()
@@ -64,7 +62,7 @@ local read_shada_file = function(fname)
local fd = io.open(fname, 'r')
local mstring = fd:read('*a')
fd:close()
- local unpack = mpack.Unpacker()
+ local unpack = vim.mpack.Unpacker()
local ret = {}
local cur, val
local i = 0