diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/menu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c index c3ab358bebf..447faf60b1f 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -1087,6 +1087,9 @@ into menu items. */) | |||
| 1087 | /* Find the menu bar item under `col'. */ | 1087 | /* Find the menu bar item under `col'. */ |
| 1088 | item = Qnil; | 1088 | item = Qnil; |
| 1089 | items = FRAME_MENU_BAR_ITEMS (f); | 1089 | items = FRAME_MENU_BAR_ITEMS (f); |
| 1090 | /* This loop assumes a single menu-bar line, and will fail to | ||
| 1091 | find an item if it is not in the first line. Note that | ||
| 1092 | make_lispy_event in keyboard.c makes the same assumption. */ | ||
| 1090 | for (i = 0; i < ASIZE (items); i += 4) | 1093 | for (i = 0; i < ASIZE (items); i += 4) |
| 1091 | { | 1094 | { |
| 1092 | Lisp_Object pos, str; | 1095 | Lisp_Object pos, str; |