diff src/undo.c @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents 558f606b08ae
children 74fd4e045ea6
line wrap: on
line diff
--- a/src/undo.c	Mon Aug 13 11:03:09 2007 +0200
+++ b/src/undo.c	Mon Aug 13 11:04:06 2007 +0200
@@ -75,7 +75,9 @@
   if (EQ (b->undo_list, Qt))
     return (0);
 
-  if (NILP (last_undo_buffer) || b != XBUFFER (last_undo_buffer))
+  if (NILP (last_undo_buffer)
+      || (BUFFER_BASE_BUFFER (b)
+	  != BUFFER_BASE_BUFFER (XBUFFER (last_undo_buffer))))
     {
       undo_boundary (b);
       XSETBUFFER (last_undo_buffer, b);