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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user