Mercurial > vim
diff src/vim9compile.c @ 25595:c4e29355cd8b v8.2.3334
patch 8.2.3334: Vim9: not enough tests run with Vim9
Commit: https://github.com/vim/vim/commit/bd77aa92744d79f3ba69aee713739ec17da474f6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 12 17:06:05 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 Aug 2021 17:15:04 +0200 |
parents | ea69398b40d1 |
children | 6f13d9ea0d04 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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) {