From: Richard M. Stallman Date: Mon, 24 Jan 1994 17:07:28 +0000 (+0000) Subject: (graft_intervals_into_buffer): Fix one-off X-Git-Tag: emacs-19.34~10185 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=767809fb40853c0c2a678ac84e25ee921f7c542e;p=emacs.git (graft_intervals_into_buffer): Fix one-off comparing lengths of over and under. --- diff --git a/src/intervals.c b/src/intervals.c index 51f988d4637..2a946e6da0b 100644 --- a/src/intervals.c +++ b/src/intervals.c @@ -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);