When a function is defined at the top level of a script, it should be able to see
script-local variables defined at that same level.
The find_script_var() function was missing a check for the case where uf_block_depth
is zero. Added a check to ensure sav_block_id == 0 is accepted as visible when the
function is not inside a nested block.
Fixes the issue reported in #19959.
https://github.com/vim/vim/pull/19963
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()