Index: vteaccess.c
===================================================================
RCS file: /cvs/gnome/vte/src/vteaccess.c,v
retrieving revision 1.50
diff -u -r1.50 vteaccess.c
--- vteaccess.c	18 Apr 2006 22:50:29 -0000	1.50
+++ vteaccess.c	31 Oct 2006 00:28:14 -0000
@@ -491,10 +491,14 @@
 		/* Now emit a deleted signal for text that was in the old
 		 * string but isn't in the new one... */
 		if (olen > offset) {
+			priv->snapshot_text->str = old;
+			priv->snapshot_text->len = olen;
 			emit_text_changed_delete(G_OBJECT(data),
 						 old,
 						 offset,
 						 olen - offset);
+			priv->snapshot_text->str = current;
+			priv->snapshot_text->len = clen;
 		}
 		/* .. and an inserted signal for text that wasn't in the old
 		 * string but is in the new one. */
