mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
fix(eval): handle wrong v:lua in expr option properly (#29953)
This commit is contained in:
@@ -2630,7 +2630,7 @@ static int may_call_simple_func(const char *arg, typval_T *rettv)
|
||||
if (parens != NULL && *skipwhite(parens + 2) == NUL) {
|
||||
if (strnequal(arg, "v:lua.", 6)) {
|
||||
const char *p = arg + 6;
|
||||
if (skip_luafunc_name(p) == parens) {
|
||||
if (p != parens && skip_luafunc_name(p) == parens) {
|
||||
r = call_simple_luafunc(p, (size_t)(parens - p), rettv);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user