diff options
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index fe3da4be8a..9a2f18f043 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7974,7 +7974,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, string = POSN_STRING (EVENT_START (key)); pos = XCDR (string); string = XCAR (string); - if (pos >= 0 && pos < XSTRING (string)->size) + if (XINT (pos) >= 0 + && XINT (pos) < XSTRING (string)->size) { map = Fget_text_property (pos, Qlocal_map, string); if (!NILP (map)) |