mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0523: loops are repeated
Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
This commit is contained in:
@@ -3984,7 +3984,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
|
||||
l = heredoc_get(eap, op + 3);
|
||||
|
||||
// Push each line and the create the list.
|
||||
for (li = l->lv_first; li != NULL; li = li->li_next)
|
||||
FOR_ALL_LIST_ITEMS(l, li)
|
||||
{
|
||||
generate_PUSHS(cctx, li->li_tv.vval.v_string);
|
||||
li->li_tv.vval.v_string = NULL;
|
||||
|
Reference in New Issue
Block a user