aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-16 16:37:37 +0800
committerGitHub <noreply@github.com>2022-09-16 16:37:37 +0800
commitb98de0e0e5df96cadbac9222ddb1caa463cea2f0 (patch)
tree89c1d5df4f7843a52eafaafdaad98b660201ed0e /src/nvim/lua/executor.c
parent0b7a3c173c929085f54a178c9fa852481d5f021e (diff)
downloadrneovim-b98de0e0e5df96cadbac9222ddb1caa463cea2f0.tar.gz
rneovim-b98de0e0e5df96cadbac9222ddb1caa463cea2f0.tar.bz2
rneovim-b98de0e0e5df96cadbac9222ddb1caa463cea2f0.zip
vim-patch:8.2.0067: ERROR_UNKNOWN clashes on some systems (#20212)
Problem: ERROR_UNKNOWN clashes on some systems. Solution: Rename ERROR_ to FCERR_. (Ola Söder, closes vim/vim#5415) https://github.com/vim/vim/commit/ef140544f6703a7a4c0f6a15f610508ed6b09e89 Remove ERROR_BOTH which was removed from Vim in patch 7.4.1582.
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 128f133b23..94947c2fbc 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -1435,12 +1435,12 @@ int typval_exec_lua_callable(LuaRef lua_cb, int argcount, typval_T *argvars, typ
if (nlua_pcall(lstate, argcount, 1)) {
nlua_print(lstate);
- return ERROR_OTHER;
+ return FCERR_OTHER;
}
nlua_pop_typval(lstate, rettv);
- return ERROR_NONE;
+ return FCERR_NONE;
}
/// Execute Lua string