mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -60,8 +60,8 @@ static int regex_match(lua_State *lstate, regprog_T **prog, char_u *str)
|
||||
*prog = rm.regprog;
|
||||
|
||||
if (match) {
|
||||
lua_pushinteger(lstate, (lua_Integer)(rm.startp[0] - str));
|
||||
lua_pushinteger(lstate, (lua_Integer)(rm.endp[0] - str));
|
||||
lua_pushinteger(lstate, (lua_Integer)(rm.startp[0] - (char *)str));
|
||||
lua_pushinteger(lstate, (lua_Integer)(rm.endp[0] - (char *)str));
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user