summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c1
-rw-r--r--generic/tkText.h7
2 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index d050170..76051da 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -2124,6 +2124,7 @@ ConfigureText(
if (TkTextIndexCmp(&index3, &index2) > 0) {
textPtr->currentMarkPtr = TkTextSetMark(textPtr, "current", &index2);
}
+ 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.