]> git.eshelyaron.com Git - emacs.git/commitdiff
(graft_intervals_into_buffer):
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 26 Nov 2001 02:16:59 +0000 (02:16 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 26 Nov 2001 02:16:59 +0000 (02:16 +0000)
Don't call set_text_properties_1 on an empty interval.

src/intervals.c

index b55cd64e45e18bb998bb958e199caf86c526295c..c1a088b1065557e907f4cac1ce03052872d3005d 100644 (file)
@@ -1690,7 +1690,7 @@ graft_intervals_into_buffer (source, position, length, buffer, inherit)
   if (NULL_INTERVAL_P (source))
     {
       Lisp_Object buf;
-      if (!inherit && ! NULL_INTERVAL_P (tree))
+      if (!inherit && !NULL_INTERVAL_P (tree) && length > 0)
        {
          XSETBUFFER (buf, buffer);
          set_text_properties_1 (make_number (position),