mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14: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:
@@ -7591,7 +7591,7 @@ gui_mch_tearoff(
|
||||
for (col = 0; col < 2; col++)
|
||||
{
|
||||
columnWidths[col] = 0;
|
||||
for (pmenu = menu->children; pmenu != NULL; pmenu = pmenu->next)
|
||||
FOR_ALL_CHILD_MENUS(menu, pmenu)
|
||||
{
|
||||
// Use "dname" here to compute the width of the visible text.
|
||||
text = (col == 0) ? pmenu->dname : pmenu->actext;
|
||||
|
Reference in New Issue
Block a user