projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d2db3
)
Improve test for empty help-echo on NS menu bar items
author
Po Lu
<luangruo@yahoo.com>
Fri, 13 May 2022 08:08:54 +0000
(16:08 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Fri, 13 May 2022 08:08:54 +0000
(16:08 +0800)
* src/nsmenu.m ([EmacsMenu menu:willHighlightItem:]): Also check
if idx is valid.
src/nsmenu.m
patch
|
blob
|
history
diff --git
a/src/nsmenu.m
b/src/nsmenu.m
index 9f4825ac140258293b9aac53af92427cb13947fb..5599d5190635dfc0225b62b657eead4179bb6542 100644
(file)
--- a/
src/nsmenu.m
+++ b/
src/nsmenu.m
@@
-782,7
+782,7
@@
prettify_key (const char *key)
}
/* Just dismiss any help-echo that might already be in progress if
no menu item will be highlighted. */
- else if (item == nil)
+ else if (item == nil
|| idx <= 0
)
help = Qnil;
else
{