summaryrefslogtreecommitdiff
path: root/lisp/calc
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2022-01-02 22:08:52 -0800
committerJuri Linkov <juri@linkov.net>2022-01-04 10:18:15 +0200
commit3eaf3aeec8a23dda8f9a170909bcc052c3d4ab78 (patch)
tree889ec53890605c716582325f06c645e301380b3d /lisp/calc
parent9651be5b48691ced56230522e10c05a04455e4a3 (diff)
downloademacs-3eaf3aeec8a23dda8f9a170909bcc052c3d4ab78.tar.gz
emacs-3eaf3aeec8a23dda8f9a170909bcc052c3d4ab78.tar.bz2
emacs-3eaf3aeec8a23dda8f9a170909bcc052c3d4ab78.zip
Prevent further cases of duplicated separators in context menus
In some cases, context menu items are added before the overall prompt string. This could cause multiple consecutive separators to appear if they "surround" the prompt string. (Bug#52293) * lisp/mouse.el (context-menu-map): Improve the de-duplication logic to ignore non-menu-items when checking for consecutive separators. * test/lisp/mouse-tests.el (context-menu-map-remove-consecutive-separators) (context-menu-map-remove-separators-at-beginning-or-end): New tests.
Diffstat (limited to 'lisp/calc')
0 files changed, 0 insertions, 0 deletions