]> git.eshelyaron.com Git - emacs.git/commit
imenu: Make the test for a single category of map (e.g. "Class") rigorous
authorAlan Mackenzie <acm@muc.de>
Sun, 19 Feb 2023 16:09:32 +0000 (16:09 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 19 Feb 2023 16:09:32 +0000 (16:09 +0000)
commit8fba4cff1bd0b953af9e950e872e1eaecff179d7
tree171bcccec5c9724f1291d170f8d6d611ae7950ba
parent34f44ae07e0a3ba7ae43d79ab71b03795cb4acf5
imenu: Make the test for a single category of map (e.g. "Class") rigorous

This fixes bug #61629.

* lisp/imenu.el (imenu--mouse-menu): Test (consp (cdadr menu)) to avoid
confusion with a single entry for a single function.
(imenu-update-menubar): Change the code to match that above.
lisp/imenu.el