* intervals.c (get_local_map): Actually clip POSITION
Fixes: debbugs:14753
This commit is contained in:
parent
adc5dbceb0
commit
e6c6c8c774
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-06-30 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* intervals.c (get_local_map): Actually clip POSITION (Bug#14753).
|
||||
|
||||
2013-06-30 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* intervals.c (get_local_map): Instead of aborting, clip POSITION
|
||||
|
|
|
@ -2199,13 +2199,12 @@ get_property_and_range (ptrdiff_t pos, Lisp_Object prop, Lisp_Object *val,
|
|||
`local-map' use BUFFER's local map. */
|
||||
|
||||
Lisp_Object
|
||||
get_local_map (register ptrdiff_t position, register struct buffer *buffer,
|
||||
Lisp_Object type)
|
||||
get_local_map (ptrdiff_t position, struct buffer *buffer, Lisp_Object type)
|
||||
{
|
||||
Lisp_Object prop, lispy_position, lispy_buffer;
|
||||
ptrdiff_t old_begv, old_zv, old_begv_byte, old_zv_byte;
|
||||
|
||||
clip_to_bounds (BUF_BEGV (buffer), position, BUF_ZV (buffer));
|
||||
position = clip_to_bounds (BUF_BEGV (buffer), position, BUF_ZV (buffer));
|
||||
|
||||
/* Ignore narrowing, so that a local map continues to be valid even if
|
||||
the visible region contains no characters and hence no properties. */
|
||||
|
|
Loading…
Add table
Reference in a new issue