0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.2998: Vim9: disassemble test fails

Problem:    Vim9: disassemble test fails.
Solution:   Add missing call to lookup_debug_var().
This commit is contained in:
Bram Moolenaar 2021-06-14 21:32:21 +02:00
parent 26d711645c
commit 1b0a9dd413
2 changed files with 12 additions and 6 deletions

View File

@ -2571,6 +2571,9 @@ eval_variable(
cc = name[len];
name[len] = NUL;
// Check for local variable when debugging.
if ((tv = lookup_debug_var(name)) == NULL)
{
// Check for user-defined variables.
v = find_var(name, NULL, flags & EVAL_VAR_NOAUTOLOAD);
if (v != NULL)
@ -2579,6 +2582,7 @@ eval_variable(
if (dip != NULL)
*dip = v;
}
}
if (tv == NULL && (in_vim9script() || STRNCMP(name, "s:", 2) == 0))
{

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2998,
/**/
2997,
/**/