aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-08-23 14:16:46 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2015-08-26 10:31:26 +0200
commit2b6d1546ecfb24a6cf7ef970bcea3b9a288ad5a5 (patch)
treeabd341bc507268574b97340b95eade3f3fab0c63 /test/functional/helpers.lua
parentdf9d7489ca4a3fcfa977b0e7df9ec3afa0e77f8c (diff)
downloadrneovim-2b6d1546ecfb24a6cf7ef970bcea3b9a288ad5a5.tar.gz
rneovim-2b6d1546ecfb24a6cf7ef970bcea3b9a288ad5a5.tar.bz2
rneovim-2b6d1546ecfb24a6cf7ef970bcea3b9a288ad5a5.zip
test59: Store all text as utf-8 and convert when needed
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 799b57494b..f228f6290c 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -129,6 +129,10 @@ local function nvim_eval(expr)
return request('vim_eval', expr)
end
+local function nvim_call(name, ...)
+ return request('vim_call_function', name, {...})
+end
+
local function nvim_feed(input)
while #input > 0 do
local written = request('vim_input', input)
@@ -321,6 +325,7 @@ return {
feed = feed,
execute = execute,
eval = nvim_eval,
+ call = nvim_call,
command = nvim_command,
request = request,
next_message = next_message,