diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-05 18:42:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 18:42:00 +0200 |
commit | d4f47fe17d5168304b73df26a5d8fe3b11832128 (patch) | |
tree | de2c438ed9b0936795ae4f99e9a6e4df2c6ffe2f /src/nvim/lua/executor.c | |
parent | 3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d (diff) | |
parent | 9a671e6a24243a5ff2879599d91ab5aec8b4e77d (diff) | |
download | rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.tar.gz rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.tar.bz2 rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.zip |
Merge pull request #18416 from dundargoc/refactor/remove-char_u
refactor/remove char u
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 1777ba0a76..b61488b667 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -881,7 +881,7 @@ static int nlua_debug(lua_State *lstate) { .v_lock = VAR_FIXED, .v_type = VAR_STRING, - .vval.v_string = (char_u *)"lua_debug> ", + .vval.v_string = "lua_debug> ", }, { .v_type = VAR_UNKNOWN, @@ -1195,8 +1195,8 @@ void nlua_call_user_expand_func(expand_T *xp, typval_T *ret_tv) lua_State *const lstate = global_lstate; nlua_pushref(lstate, xp->xp_luaref); - lua_pushstring(lstate, (char *)xp->xp_pattern); - lua_pushstring(lstate, (char *)xp->xp_line); + lua_pushstring(lstate, xp->xp_pattern); + lua_pushstring(lstate, xp->xp_line); lua_pushinteger(lstate, xp->xp_col); if (nlua_pcall(lstate, 3, 1)) { @@ -1495,7 +1495,7 @@ void ex_luado(exarg_T *const eap) new_line_transformed[i] = '\n'; } } - ml_replace(l, (char_u *)new_line_transformed, false); + ml_replace(l, new_line_transformed, false); inserted_bytes(l, 0, (int)old_line_len, (int)new_line_len); } lua_pop(lstate, 1); |