1
0
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:
Richard M. Stallman 1993-05-26 17:58:22 +00:00
parent bf673a7a13
commit 0a9b0670a4

View File

@ -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