Mercurial > vim
comparison src/gui_w32.c @ 19934:3ff714d765ba v8.2.0523
patch 8.2.0523: loops are repeated
Commit: https://github.com/vim/vim/commit/00d253e2b2f435a5386582c3f857008e7ac355c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 6 22:13:01 2020 +0200
patch 8.2.0523: loops are repeated
Problem: Loops are repeated.
Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5882)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Apr 2020 22:15:39 +0200 |
parents | e1f4e9d78a6a |
children | aadd1cae2ff5 |
comparison
equal
deleted
inserted
replaced
19933:005e707a7988 | 19934:3ff714d765ba |
---|---|
7589 // optional submenu column. | 7589 // optional submenu column. |
7590 submenuWidth = 0; | 7590 submenuWidth = 0; |
7591 for (col = 0; col < 2; col++) | 7591 for (col = 0; col < 2; col++) |
7592 { | 7592 { |
7593 columnWidths[col] = 0; | 7593 columnWidths[col] = 0; |
7594 for (pmenu = menu->children; pmenu != NULL; pmenu = pmenu->next) | 7594 FOR_ALL_CHILD_MENUS(menu, pmenu) |
7595 { | 7595 { |
7596 // Use "dname" here to compute the width of the visible text. | 7596 // Use "dname" here to compute the width of the visible text. |
7597 text = (col == 0) ? pmenu->dname : pmenu->actext; | 7597 text = (col == 0) ? pmenu->dname : pmenu->actext; |
7598 if (text != NULL && *text != NUL) | 7598 if (text != NULL && *text != NUL) |
7599 { | 7599 { |