Mercurial > emacs
changeset 7773:2226c7efb3da
(Fprevious_single_property_change): Check for null interval after correcting
for edge effects.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 03 Jun 1994 04:08:32 +0000 |
parents | 7821be0db092 |
children | f9cde3320987 |
files | src/textprop.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/textprop.c Fri Jun 03 03:26:11 1994 +0000 +++ b/src/textprop.c Fri Jun 03 04:08:32 1994 +0000 @@ -763,13 +763,14 @@ CHECK_NUMBER_COERCE_MARKER (limit, 0); i = validate_interval_range (object, &pos, &pos, soft); + + /* Start with the interval containing the char before point. */ + if (! NULL_INTERVAL_P (i) && i->position == XFASTINT (pos)) + i = previous_interval (i); + if (NULL_INTERVAL_P (i)) return limit; - /* Start with the interval containing the char before point. */ - if (i->position == XFASTINT (pos)) - i = previous_interval (i); - here_val = textget (i->plist, prop); previous = previous_interval (i); while (! NULL_INTERVAL_P (previous)