Commit 6873cfa3 authored by Karl Heuer's avatar Karl Heuer

(Fprevious_single_property_change): Check for null interval after correcting

for edge effects.
parent 1105ff20
......@@ -763,13 +763,14 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT.")
CHECK_NUMBER_COERCE_MARKER (limit, 0);
i = validate_interval_range (object, &pos, &pos, soft);
if (NULL_INTERVAL_P (i))
return limit;
/* Start with the interval containing the char before point. */
if (i->position == XFASTINT (pos))
if (! NULL_INTERVAL_P (i) && i->position == XFASTINT (pos))
i = previous_interval (i);
if (NULL_INTERVAL_P (i))
return limit;
here_val = textget (i->plist, prop);
previous = previous_interval (i);
while (! NULL_INTERVAL_P (previous)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment