diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 06:32:17 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 10:43:28 +0800 |
commit | 4a098b97e53551a3383e669f4730be542c61e012 (patch) | |
tree | 72fe784d342c52d3440070fa171457864b619ec8 /test/functional/lua/commands_spec.lua | |
parent | 9ded4c127599b821d0875db9d63049b5970437a4 (diff) | |
download | rneovim-4a098b97e53551a3383e669f4730be542c61e012.tar.gz rneovim-4a098b97e53551a3383e669f4730be542c61e012.tar.bz2 rneovim-4a098b97e53551a3383e669f4730be542c61e012.zip |
fix(excmd): append original command to error message
Revert the change to do_cmdline_cmd() from #5226.
This function is used in many places, so making it different from Vim
leads to small differences from Vim in the behavior of some functions
like execute() and assert_fails(). If DOCMD_VERBOSE really needs to be
removed somewhere, a do_cmdline() call without DOCMD_VERBOSE is also
shorter than a do_cmdline() call with DOCMD_VERBOSE.
Diffstat (limited to 'test/functional/lua/commands_spec.lua')
-rw-r--r-- | test/functional/lua/commands_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/commands_spec.lua b/test/functional/lua/commands_spec.lua index 9a8d5efa5d..fca619348d 100644 --- a/test/functional/lua/commands_spec.lua +++ b/test/functional/lua/commands_spec.lua @@ -214,7 +214,7 @@ describe(':luado command', function() end) it('fails in sandbox when needed', function() curbufmeths.set_lines(0, 1, false, {"ABC", "def", "gHi"}) - eq('Vim(luado):E48: Not allowed in sandbox', + eq('Vim(luado):E48: Not allowed in sandbox: sandbox luado runs = (runs or 0) + 1', pcall_err(command, 'sandbox luado runs = (runs or 0) + 1')) eq(NIL, funcs.luaeval('runs')) end) |