(read_key_sequence): Extract local map only if the
given position is in an accessible buffer region.
This commit is contained in:
parent
25170427ab
commit
602ae44c18
1 changed files with 2 additions and 1 deletions
|
@ -9286,7 +9286,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
|
|||
{
|
||||
pos = POSN_BUFFER_POSN (start);
|
||||
if (INTEGERP (pos)
|
||||
&& XINT (pos) >= BEG && XINT (pos) <= Z)
|
||||
&& XINT (pos) >= BEGV
|
||||
&& XINT (pos) <= ZV)
|
||||
{
|
||||
map_here = get_local_map (XINT (pos),
|
||||
current_buffer, Qlocal_map);
|
||||
|
|
Loading…
Add table
Reference in a new issue