Mercurial > emacs
changeset 3117:1d3a6f78266f
(make_lispy_event): Fix off-by-1 error with hpos in menu bar.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 26 May 1993 17:58:22 +0000 |
parents | 05c3ef28bb6b |
children | e7dd24a618fb |
files | src/keyboard.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Wed May 26 17:50:23 1993 +0000 +++ b/src/keyboard.c Wed May 26 17:58:22 1993 +0000 @@ -2221,8 +2221,8 @@ 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