Mercurial > vim
comparison src/gui_gtk.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 | 79e10adc821d |
children | fcccc29bd386 |
comparison
equal
deleted
inserted
replaced
19933:005e707a7988 | 19934:3ff714d765ba |
---|---|
822 gui_gtk_set_mnemonics(int enable) | 822 gui_gtk_set_mnemonics(int enable) |
823 { | 823 { |
824 vimmenu_T *menu; | 824 vimmenu_T *menu; |
825 char_u *name; | 825 char_u *name; |
826 | 826 |
827 for (menu = root_menu; menu != NULL; menu = menu->next) | 827 FOR_ALL_MENUS(menu) |
828 { | 828 { |
829 if (menu->id == NULL) | 829 if (menu->id == NULL) |
830 continue; | 830 continue; |
831 | 831 |
832 name = translate_mnemonic_tag(menu->name, enable); | 832 name = translate_mnemonic_tag(menu->name, enable); |