--- vteaccess.c	2005-03-09 12:24:56.000000000 +0100
+++ /home/samy/vte-0.11.13/src/vteaccess.c	2005-05-17 22:47:21.000000000 +0200
@@ -409,7 +409,7 @@
 #endif
 
 	/* Get the offsets to the beginnings of each line. */
-	caret = -1;
+	caret = 0;
 	for (i = 0; i < priv->snapshot_characters->len; i++) {
 		/* Get the attributes for the current cell. */
 		offset = g_array_index(priv->snapshot_characters,
@@ -425,12 +425,6 @@
 		}
 	}
 
-	/* If no cells are before the caret, then the caret must be
-	 * at the end of the buffer. */
-	if (caret == -1) {
-		caret = priv->snapshot_characters->len;
-	}
-
 	/* Notify observers if the caret moved. */
 	if (caret != priv->snapshot_caret) {
 		priv->snapshot_caret = caret;
