From f9e5cb0ad3a19e7c630d469720ec3576e5c17514 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 5 Oct 2013 20:38:22 +0300 Subject: [PATCH] Improve commentary. --- src/menu.c | 3 +++ 1 file changed, 3 insertions(+) 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. */) /* Find the menu bar item under `col'. */ item = Qnil; items = FRAME_MENU_BAR_ITEMS (f); + /* This loop assumes a single menu-bar line, and will fail to + find an item if it is not in the first line. Note that + make_lispy_event in keyboard.c makes the same assumption. */ for (i = 0; i < ASIZE (items); i += 4) { Lisp_Object pos, str; -- 2.39.2