1
0
forked from aniani/vim

patch 8.2.3334: Vim9: not enough tests run with Vim9

Problem:    Vim9: not enough tests run with Vim9.
Solution:   Run a few more tests in Vim9 script and :def function. Fix
            islocked().  Fix error for locking local variable.
This commit is contained in:
Bram Moolenaar
2021-08-12 17:06:05 +02:00
parent 3e9c0b9608
commit bd77aa9274
4 changed files with 136 additions and 98 deletions

View File

@@ -6556,7 +6556,8 @@ f_islocked(typval_T *argvars, typval_T *rettv)
return;
end = get_lval(tv_get_string(&argvars[0]), NULL, &lv, FALSE, FALSE,
GLV_NO_AUTOLOAD | GLV_READ_ONLY, FNE_CHECK_START);
GLV_NO_AUTOLOAD | GLV_READ_ONLY | GLV_NO_DECL,
FNE_CHECK_START);
if (end != NULL && lv.ll_name != NULL)
{
if (*end != NUL)