diff options
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 1a9d751202..9409b63242 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7863,8 +7863,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, 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), !NILP (map))) |