diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-05 13:36:14 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-09 10:03:29 +0200 |
commit | e31b32a293f6ba8708499a176234f8be1df6a145 (patch) | |
tree | 87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/lua/executor.c | |
parent | dbdd58e548fcf55848359b696275fd848756db7b (diff) | |
download | rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.tar.gz rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.tar.bz2 rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index b61488b667..1da868c137 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -956,7 +956,7 @@ int nlua_call(lua_State *lstate) funcexe.evaluate = true; // call_func() retval is deceptive, ignore it. Instead we set `msg_list` // (TRY_WRAP) to capture abort-causing non-exception errors. - (void)call_func(name, (int)name_len, &rettv, nargs, vim_args, &funcexe); + (void)call_func((char *)name, (int)name_len, &rettv, nargs, vim_args, &funcexe); if (!try_end(&err)) { nlua_push_typval(lstate, &rettv, false); } @@ -1873,7 +1873,7 @@ void nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap) char *buf = xcalloc(length, sizeof(char)); bool done = false; while (!done) { - done = uc_split_args_iter((char_u *)eap->arg, length, &end, buf, &len); + done = uc_split_args_iter(eap->arg, length, &end, buf, &len); if (len > 0) { lua_pushlstring(lstate, buf, len); lua_rawseti(lstate, -2, i); |