]> code.delx.au - gnu-emacs/commitdiff
(Fnext_property_change): Fix previous change.
authorKarl Heuer <kwzh@gnu.org>
Fri, 24 Mar 1995 22:46:42 +0000 (22:46 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 24 Mar 1995 22:46:42 +0000 (22:46 +0000)
src/textprop.c

index 7e92be89865f09c05ca60b628f878ff81f27d3eb..7f635777d0b318fa1c68ffe37461ebeb8524531a 100644 (file)
@@ -618,7 +618,12 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT.")
      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;
     }