aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-26 17:58:22 +0000
committerRichard M. Stallman1993-05-26 17:58:22 +0000
commit0a9b0670a44263255219f3bfc094f7a24edd106c (patch)
tree7827e3ad43d936de1355d673857bd8f4531268a5 /src
parentbf673a7a1392388daed1b02810c985a6db1c2eba (diff)
downloademacs-0a9b0670a44263255219f3bfc094f7a24edd106c.tar.gz
emacs-0a9b0670a44263255219f3bfc094f7a24edd106c.zip
(make_lispy_event): Fix off-by-1 error with hpos in menu bar.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index fc7d5f4d8cf..a9bb02bb896 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2221,8 +2221,8 @@ make_lispy_event (event)
2221 Lisp_Object pos, string; 2221 Lisp_Object pos, string;
2222 pos = Fcdr (Fcdr (Fcar (items))); 2222 pos = Fcdr (Fcdr (Fcar (items)));
2223 string = Fcar (Fcdr (Fcar (items))); 2223 string = Fcar (Fcdr (Fcar (items)));
2224 if (XINT (event->x) > XINT (pos) 2224 if (XINT (event->x) >= XINT (pos)
2225 && XINT (event->x) <= XINT (pos) + XSTRING (string)->size) 2225 && XINT (event->x) < XINT (pos) + XSTRING (string)->size)
2226 break; 2226 break;
2227 } 2227 }
2228 position 2228 position