mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(make_lispy_event): Fix off-by-1 error with hpos in menu bar.
This commit is contained in:
parent
bf673a7a13
commit
0a9b0670a4
@ -2221,8 +2221,8 @@ make_lispy_event (event)
|
||||
Lisp_Object pos, string;
|
||||
pos = Fcdr (Fcdr (Fcar (items)));
|
||||
string = Fcar (Fcdr (Fcar (items)));
|
||||
if (XINT (event->x) > XINT (pos)
|
||||
&& XINT (event->x) <= XINT (pos) + XSTRING (string)->size)
|
||||
if (XINT (event->x) >= XINT (pos)
|
||||
&& XINT (event->x) < XINT (pos) + XSTRING (string)->size)
|
||||
break;
|
||||
}
|
||||
position
|
||||
|
Loading…
Reference in New Issue
Block a user