mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -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:
@@ -963,7 +963,7 @@ redraw_win_toolbar(win_T *wp)
|
||||
int button_attr = syn_name2attr((char_u *)"ToolbarButton");
|
||||
|
||||
vim_free(wp->w_winbar_items);
|
||||
for (menu = wp->w_winbar->children; menu != NULL; menu = menu->next)
|
||||
FOR_ALL_CHILD_MENUS(wp->w_winbar, menu)
|
||||
++item_count;
|
||||
wp->w_winbar_items = ALLOC_CLEAR_MULT(winbar_item_T, item_count + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user