diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-03-06 10:04:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 10:04:13 -0500 |
commit | 6969d3d7491fc2f10d80309b26dd0c26d211b1b3 (patch) | |
tree | a6ef1d2c0195f9dd06109e0d977cb382c9b428df /src | |
parent | f9a46391ab5961fe6c6b7d1efdc96befdd495c11 (diff) | |
parent | 74ffebf8ec725a25c2ae1dde81cf26b83fc7ae61 (diff) | |
download | rneovim-6969d3d7491fc2f10d80309b26dd0c26d211b1b3.tar.gz rneovim-6969d3d7491fc2f10d80309b26dd0c26d211b1b3.tar.bz2 rneovim-6969d3d7491fc2f10d80309b26dd0c26d211b1b3.zip |
Merge #22325 vim.version semver parser
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/lua/executor.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index bb461a7f13..5ec91aebb0 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -165,17 +165,6 @@ static int nlua_pcall(lua_State *lstate, int nargs, int nresults) return status; } -/// Gets the version of the current Nvim build. -/// -/// @param lstate Lua interpreter state. -static int nlua_nvim_version(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL -{ - Dictionary version = version_dict(); - nlua_push_Dictionary(lstate, version, true); - api_free_dictionary(version); - return 1; -} - static void nlua_luv_error_event(void **argv) { char *error = (char *)argv[0]; @@ -739,10 +728,6 @@ static bool nlua_state_init(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL // vim.types, vim.type_idx, vim.val_idx nlua_init_types(lstate); - // neovim version - lua_pushcfunction(lstate, &nlua_nvim_version); - lua_setfield(lstate, -2, "version"); - // schedule lua_pushcfunction(lstate, &nlua_schedule); lua_setfield(lstate, -2, "schedule"); |