summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--generic/tkText.c2
-rw-r--r--generic/tkText.h7
3 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index f9eae92..75fecd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-2012-01-?? Francois Vogel <fvogelnew1@free.fr>
+2012-01-25 Francois Vogel <fvogelnew1@free.fr>
* generic/tkText.c: [Bug-3475627]: Test text-31.11 fails
diff --git a/generic/tkText.c b/generic/tkText.c
index 30d1102..6b42489 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -2009,7 +2009,6 @@ ConfigureText(
textPtr->sharedTextPtr->undo = textPtr->undo;
textPtr->sharedTextPtr->maxUndo = textPtr->maxUndo;
textPtr->sharedTextPtr->autoSeparators = textPtr->autoSeparators;
- textPtr->sharedTextPtr->stateEpoch++;
TkUndoSetDepth(textPtr->sharedTextPtr->undoStack,
textPtr->sharedTextPtr->maxUndo);
@@ -2099,6 +2098,7 @@ ConfigureText(
textPtr->abortSelections = 1;
}
}
+ textPtr->sharedTextPtr->stateEpoch++;
}
/*
diff --git a/generic/tkText.h b/generic/tkText.h
index 289e64b..4ffdc8a 100644
--- a/generic/tkText.h
+++ b/generic/tkText.h
@@ -561,9 +561,10 @@ typedef struct TkSharedText {
* Each "object" used for this table is the
* name of a tag. */
int stateEpoch; /* This is incremented each time the B-tree's
- * contents change structurally, and means
- * that any cached TkTextIndex objects are no
- * longer valid. */
+ * contents change structurally, or when the
+ * start/end limits change, and means that any
+ * cached TkTextIndex objects are no longer
+ * valid. */
/*
* Information related to the undo/redo functionality.