# HG changeset patch # User Bram Moolenaar # Date 1623699903 -7200 # Node ID 0d8baefcf4ed932a778bc5e1c3e7e127ef9ce279 # Parent a08e12346f594c8c6b10ae749769576fa0694095 patch 8.2.2998: Vim9: disassemble test fails Commit: https://github.com/vim/vim/commit/1b0a9dd413c03054f461a01531e010ad739617a7 Author: Bram Moolenaar Date: Mon Jun 14 21:32:21 2021 +0200 patch 8.2.2998: Vim9: disassemble test fails Problem: Vim9: disassemble test fails. Solution: Add missing call to lookup_debug_var(). diff --git a/src/evalvars.c b/src/evalvars.c --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2571,13 +2571,17 @@ eval_variable( cc = name[len]; name[len] = NUL; - // Check for user-defined variables. - v = find_var(name, NULL, flags & EVAL_VAR_NOAUTOLOAD); - if (v != NULL) + // Check for local variable when debugging. + if ((tv = lookup_debug_var(name)) == NULL) { - tv = &v->di_tv; - if (dip != NULL) - *dip = v; + // Check for user-defined variables. + v = find_var(name, NULL, flags & EVAL_VAR_NOAUTOLOAD); + if (v != NULL) + { + tv = &v->di_tv; + if (dip != NULL) + *dip = v; + } } if (tv == NULL && (in_vim9script() || STRNCMP(name, "s:", 2) == 0)) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2998, +/**/ 2997, /**/ 2996,