mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.0460: loop variable can't be found
Problem: Loop variable can't be found. Solution: Adjust block_id of the loop variable each round.
This commit is contained in:
@@ -3851,6 +3851,14 @@ set_var_const(
|
||||
}
|
||||
|
||||
clear_tv(&di->di_tv);
|
||||
|
||||
if ((flags & ASSIGN_UPDATE_BLOCK_ID)
|
||||
&& SCRIPT_ID_VALID(current_sctx.sc_sid))
|
||||
{
|
||||
scriptitem_T *si = SCRIPT_ITEM(current_sctx.sc_sid);
|
||||
|
||||
update_script_var_block_id(name, si->sn_current_block_id);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user