changeset 11116:73b51ad289e3

(Fnext_property_change): Fix previous change.
author Karl Heuer <kwzh@gnu.org>
date Fri, 24 Mar 1995 22:46:42 +0000
parents 9414f249cd8b
children 34477ac36e6e
files src/textprop.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/textprop.c	Fri Mar 24 09:01:09 1995 +0000
+++ b/src/textprop.c	Fri Mar 24 22:46:42 1995 +0000
@@ -618,7 +618,12 @@
      bother checking further intervals.  */
   if (EQ (limit, Qt))
     {
-      XSETFASTINT (pos, next->position - (STRINGP (object)));
+      if (NULL_INTERVAL_P (next))
+	XSETFASTINT (pos, (STRINGP (object)
+			   ? XSTRING (object)->size
+			   : BUF_ZV (XBUFFER (object))));
+      else
+	XSETFASTINT (pos, next->position - (STRINGP (object)));
       return pos;
     }