aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nsmenu.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 9f4825ac140..5599d519063 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -782,7 +782,7 @@ prettify_key (const char *key)
782 } 782 }
783 /* Just dismiss any help-echo that might already be in progress if 783 /* Just dismiss any help-echo that might already be in progress if
784 no menu item will be highlighted. */ 784 no menu item will be highlighted. */
785 else if (item == nil) 785 else if (item == nil || idx <= 0)
786 help = Qnil; 786 help = Qnil;
787 else 787 else
788 { 788 {