]> git.eshelyaron.com Git - emacs.git/commitdiff
(graft_intervals_into_buffer): Fix one-off
authorRichard M. Stallman <rms@gnu.org>
Mon, 24 Jan 1994 17:07:28 +0000 (17:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 24 Jan 1994 17:07:28 +0000 (17:07 +0000)
comparing lengths of over and under.

src/intervals.c

index 51f988d463726ca21b0c4383333cec2c59ba205e..2a946e6da0b0445ea3245a3dcf6cffe16ffc9932 100644 (file)
@@ -1458,7 +1458,7 @@ graft_intervals_into_buffer (source, position, length, buffer, inherit)
      
   while (! NULL_INTERVAL_P (over))
     {
-      if (LENGTH (over) + 1 < LENGTH (under))
+      if (LENGTH (over) < LENGTH (under))
        {
          this = split_interval_left (under, LENGTH (over));
          copy_properties (under, this);