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)
ef140544f6

Remove ERROR_BOTH which was removed from Vim in patch 7.4.1582.
This commit is contained in:
zeertzjq
2022-09-16 16:37:37 +08:00
committed by GitHub
parent 0b7a3c173c
commit b98de0e0e5
4 changed files with 41 additions and 42 deletions

View File

@@ -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