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

@@ -7433,7 +7433,7 @@ compile_lock_unlock(
// Cannot use :lockvar and :unlockvar on local variables.
if (p[1] != ':')
{
char_u *end = skip_var_one(p, FALSE);
char_u *end = find_name_end(p, NULL, NULL, FNE_CHECK_START);
if (lookup_local(p, end - p, NULL, cctx) == OK)
{