mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user