unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Recent change in intervals.c
@ 2003-09-29 19:04 Stefan Monnier
  2003-09-30 12:22 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2003-09-29 19:04 UTC (permalink / raw)



Could someone double check that the patch below is correct and doesn't
leave yet another "corner case" ?


        Stefan


Index: intervals.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/intervals.c,v
retrieving revision 1.125
diff -u -u -b -r1.125 intervals.c
--- intervals.c	22 Sep 2003 15:51:19 -0000	1.125
+++ intervals.c	29 Sep 2003 18:59:58 -0000
@@ -1823,9 +1968,9 @@
   while (! NULL_INTERVAL_P (over))
     {
       /* If UNDER is longer than OVER, split it.  */
-      if (LENGTH (over) < LENGTH (under))
+      if (LENGTH (over) - over_used < LENGTH (under))
 	{
-	  this = split_interval_left (under, LENGTH (over));
+	  this = split_interval_left (under, LENGTH (over) - over_used);
 	  copy_properties (under, this);
 	}
       else

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-30 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-29 19:04 Recent change in intervals.c Stefan Monnier
2003-09-30 12:22 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).