mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.2168: heredoc assignment not skipped in if block
Problem: Heredoc assignment not skipped in if block. Solution: Check if "skip" is set. (closes #5063)
This commit is contained in:
@@ -756,10 +756,13 @@ ex_let_const(exarg_T *eap, int is_const)
|
||||
if (l != NULL)
|
||||
{
|
||||
rettv_list_set(&rettv, l);
|
||||
op[0] = '=';
|
||||
op[1] = NUL;
|
||||
(void)ex_let_vars(eap->arg, &rettv, FALSE, semicolon, var_count,
|
||||
if (!eap->skip)
|
||||
{
|
||||
op[0] = '=';
|
||||
op[1] = NUL;
|
||||
(void)ex_let_vars(eap->arg, &rettv, FALSE, semicolon, var_count,
|
||||
is_const, op);
|
||||
}
|
||||
clear_tv(&rettv);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user