mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
test: make mapping tests more consistent (#28368)
- Test maparg() and maplist() in the same test. - Use matches() instead of string.match(). - Avoid overlong lines and strange spacing in exec_lua(). - Revert code change from last PR as the variable may be needed.
This commit is contained in:
@@ -76,7 +76,8 @@ static Object typval_cbuf_to_obj(EncodedData *edata, const char *data, size_t le
|
||||
do { \
|
||||
ufunc_T *fp = find_func(fun); \
|
||||
if (fp != NULL && (fp->uf_flags & FC_LUAREF)) { \
|
||||
kvi_push(edata->stack, LUAREF_OBJ(api_new_luaref(fp->uf_luaref))); \
|
||||
LuaRef ref = api_new_luaref(fp->uf_luaref); \
|
||||
kvi_push(edata->stack, LUAREF_OBJ(ref)); \
|
||||
} else { \
|
||||
TYPVAL_ENCODE_CONV_NIL(tv); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user