comparison src/intervals.c @ 5666:ceed2e32b303

(graft_intervals_into_buffer): Fix one-off comparing lengths of over and under.
author Richard M. Stallman <rms@gnu.org>
date Mon, 24 Jan 1994 17:07:28 +0000
parents 95882472f2da
children ffe89784cef2
comparison
equal deleted inserted replaced
5665:83b4ead7031f 5666:ceed2e32b303
1456 adjust_intervals_for_insertion, so stickyness has 1456 adjust_intervals_for_insertion, so stickyness has
1457 already been taken care of. */ 1457 already been taken care of. */
1458 1458
1459 while (! NULL_INTERVAL_P (over)) 1459 while (! NULL_INTERVAL_P (over))
1460 { 1460 {
1461 if (LENGTH (over) + 1 < LENGTH (under)) 1461 if (LENGTH (over) < LENGTH (under))
1462 { 1462 {
1463 this = split_interval_left (under, LENGTH (over)); 1463 this = split_interval_left (under, LENGTH (over));
1464 copy_properties (under, this); 1464 copy_properties (under, this);
1465 } 1465 }
1466 else 1466 else