aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-06-22 04:09:14 -0700
committerGitHub <noreply@github.com>2023-06-22 04:09:14 -0700
commit2f17ef1fc4b96cf1106fd95ba090d34a2e4b977b (patch)
tree3c51771cc20d3206f1f1cf657ccb4cbb5ee4ecf1 /test/functional/helpers.lua
parent4e6356559c8cd44dbcaa765d1f39e176064526ec (diff)
downloadrneovim-2f17ef1fc4b96cf1106fd95ba090d34a2e4b977b.tar.gz
rneovim-2f17ef1fc4b96cf1106fd95ba090d34a2e4b977b.tar.bz2
rneovim-2f17ef1fc4b96cf1106fd95ba090d34a2e4b977b.zip
fix(messages): use "Vimscript" instead of "VimL" #24111
followup to #24109 fix #16150
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 6e668b22b0..67275b12a4 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -265,7 +265,7 @@ function module.nvim_prog_abs()
end
end
--- Executes an ex-command. VimL errors manifest as client (lua) errors, but
+-- Executes an ex-command. Vimscript errors manifest as client (lua) errors, but
-- v:errmsg will not be updated.
function module.command(cmd)
module.request('nvim_command', cmd)
@@ -289,26 +289,26 @@ function module.expect_exit(fn_or_timeout, ...)
end
end
--- Evaluates a VimL expression.
--- Fails on VimL error, but does not update v:errmsg.
+-- Evaluates a Vimscript expression.
+-- Fails on Vimscript error, but does not update v:errmsg.
function module.eval(expr)
return module.request('nvim_eval', expr)
end
--- Executes a VimL function via RPC.
--- Fails on VimL error, but does not update v:errmsg.
+-- Executes a Vimscript function via RPC.
+-- Fails on Vimscript error, but does not update v:errmsg.
function module.call(name, ...)
return module.request('nvim_call_function', name, {...})
end
--- Executes a VimL function via Lua.
--- Fails on VimL error, but does not update v:errmsg.
+-- Executes a Vimscript function via Lua.
+-- Fails on Vimscript error, but does not update v:errmsg.
function module.call_lua(name, ...)
return module.exec_lua([[return vim.call(...)]], name, ...)
end
-- Sends user input to Nvim.
--- Does not fail on VimL error, but v:errmsg will be updated.
+-- Does not fail on Vimscript error, but v:errmsg will be updated.
local function nvim_feed(input)
while #input > 0 do
local written = module.request('nvim_input', input)
@@ -518,7 +518,7 @@ function module.insert(...)
nvim_feed('<ESC>')
end
--- Executes an ex-command by user input. Because nvim_input() is used, VimL
+-- Executes an ex-command by user input. Because nvim_input() is used, Vimscript
-- errors will not manifest as client (lua) errors. Use command() for that.
function module.feed_command(...)
for _, v in ipairs({...}) do