mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor(eval): make get_lval() explicitly check for v:lua
Needed for Vim patch 8.2.3055.
This commit is contained in:
@@ -1313,8 +1313,15 @@ char *get_lval(char *const name, typval_T *const rettv, lval_T *const lp, const
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loop until no more [idx] or .key is following.
|
|
||||||
lp->ll_tv = &v->di_tv;
|
lp->ll_tv = &v->di_tv;
|
||||||
|
|
||||||
|
if (tv_is_luafunc(lp->ll_tv)) {
|
||||||
|
// For v:lua just return a pointer to the "." after the "v:lua".
|
||||||
|
// If the caller is trans_function_name() it will check for a Lua function name.
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Loop until no more [idx] or .key is following.
|
||||||
typval_T var1;
|
typval_T var1;
|
||||||
var1.v_type = VAR_UNKNOWN;
|
var1.v_type = VAR_UNKNOWN;
|
||||||
typval_T var2;
|
typval_T var2;
|
||||||
|
Reference in New Issue
Block a user